@@ -62,7 +62,7 @@ public function testBareAmpersand()
6262 {
6363 $ html = "<!doctype html>
6464 <html>
65- <body>
65+ <body>
6666 <img src='a&b' />
6767 <img src='a&=' />
6868 <img src='a&=c' />
@@ -74,7 +74,7 @@ public function testBareAmpersand()
7474 $ this ->assertEmpty ($ this ->errors );
7575 $ this ->assertXmlStringEqualsXmlString ('
7676 <!DOCTYPE html>
77- <html xmlns="http://www.w3.org/1999/xhtml"><body>
77+ <html xmlns="http://www.w3.org/1999/xhtml"><body>
7878 <img src="a&b"/>
7979 <img src="a&="/>
8080 <img src="a&=c"/>
@@ -97,7 +97,7 @@ public function testBareAmpersandNotAllowedInAttributes()
9797 $ this ->assertCount (2 , $ this ->errors );
9898 $ this ->assertXmlStringEqualsXmlString ('
9999 <!DOCTYPE html>
100- <html xmlns="http://www.w3.org/1999/xhtml"><body>
100+ <html xmlns="http://www.w3.org/1999/xhtml"><body>
101101 <img src="a&"/>
102102 <img src="a&+"/>
103103 </body>
@@ -108,7 +108,7 @@ public function testBareAmpersandNotAllowedInBody()
108108 {
109109 $ html = '<!doctype html>
110110 <html>
111- <body>
111+ <body>
112112 a&b
113113 a&=
114114 a&=c
@@ -122,7 +122,7 @@ public function testBareAmpersandNotAllowedInBody()
122122 $ this ->assertCount (5 , $ this ->errors );
123123 $ this ->assertXmlStringEqualsXmlString ('
124124 <!DOCTYPE html>
125- <html xmlns="http://www.w3.org/1999/xhtml"><body>
125+ <html xmlns="http://www.w3.org/1999/xhtml"><body>
126126 a&b
127127 a&=
128128 a&=c
@@ -467,7 +467,7 @@ public function testParseErrors()
467467 // We're JUST testing that we can access errors. Actual testing of
468468 // error messages happen in the Tokenizer's tests.
469469 $ this ->assertGreaterThan (0 , count ($ this ->errors ));
470- $ this ->assertTrue ( is_string ( $ this ->errors [0 ]) );
470+ $ this ->assertInternalType ( ' string ' , $ this ->errors [0 ]);
471471 }
472472
473473 public function testProcessingInstruction ()
0 commit comments