@@ -45,36 +45,37 @@ public static function setUpBeforeClass(): void
4545 // marshalling
4646
4747
48- /**
49- * Test creating an AttributeValue from scratch using a string.
50- *
51- */
52- public function testMarshallingString (): void
53- {
54- $ av = new AttributeValue ('value ' );
55-
56- $ this ->assertEquals ('value ' , $ av ->getValue ());
57- $ this ->assertEquals ('xs:string ' , $ av ->getXsiType ());
58- }
59-
60-
6148 /**
6249 * Test creating an AttributeValue from scratch using an integer.
63- *
6450 */
65- public function testMarshallingInteger (): void
51+ public function testMarshalling (): void
6652 {
6753 $ av = new AttributeValue (2 );
6854 $ this ->assertIsInt ($ av ->getValue ());
6955 $ this ->assertEquals (2 , $ av ->getValue ());
7056 $ this ->assertEquals ('xs:integer ' , $ av ->getXsiType ());
57+
7158 $ this ->assertEquals (
7259 self ::$ xmlRepresentation ->saveXML (self ::$ xmlRepresentation ->documentElement ),
7360 strval ($ av ),
7461 );
7562 }
7663
7764
65+ /**
66+ * Test creating an AttributeValue from scratch using a string.
67+ */
68+ public function testMarshallingString (): void
69+ {
70+ $ av = new AttributeValue ('value ' );
71+
72+ $ this ->assertEquals ('value ' , $ av ->getValue ());
73+ $ this ->assertEquals ('xs:string ' , $ av ->getXsiType ());
74+ }
75+
76+
77+ /**
78+ */
7879 public function testMarshallingNull (): void
7980 {
8081 $ av = new AttributeValue (null );
@@ -124,6 +125,7 @@ public function testUnmarshalling(): void
124125
125126 $ this ->assertIsInt ($ av ->getValue ());
126127 $ this ->assertEquals (2 , $ av ->getValue ());
128+
127129 $ this ->assertEquals (
128130 self ::$ xmlRepresentation ->saveXML (self ::$ xmlRepresentation ->documentElement ),
129131 strval ($ av ),
0 commit comments