File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,27 @@ public function it_can_serialize_a_html_string_to_pretty_html()
24
24
25
25
$ this ->assertEquals ($ expected , $ driver ->serialize ('<!doctype html><html lang="en"><head></head><body><h1>Hello, world!</h1></body></html> ' ));
26
26
}
27
+
28
+ /** @test */
29
+ public function test_for_issue_140 ()
30
+ {
31
+ $ driver = new HtmlDriver ();
32
+
33
+ $ expected = implode ("\n" , [
34
+ '<!DOCTYPE html> ' ,
35
+ '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> ' ,
36
+ '<head> ' ,
37
+ '<!--[if !mso]><!--> ' ,
38
+ '<meta http-equiv="X-UA-Compatible" content="IE=edge"> ' ,
39
+ '<!--<![endif]--> ' ,
40
+ '</head> ' ,
41
+ '<body><h1>Hello, world!</h1></body> ' ,
42
+ '</html> ' ,
43
+ '' ,
44
+ ]);
45
+
46
+ $ this ->assertEquals ($ expected , $ driver ->serialize ($ expected ));
47
+ }
27
48
28
49
/** @test */
29
50
public function it_can_only_serialize_strings ()
You can’t perform that action at this time.
0 commit comments