File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ public function testBuildRequestWithDomNode() {
7373 public function testSeeXmlIncludes () {
7474 $ dom = new DOMDocument ();
7575 $ this ->module ->xmlResponse = $ dom ;
76+ $ dom ->preserveWhiteSpace = false ;
7677 $ dom ->loadXML ('<?xml version="1.0" encoding="UTF-8"?> <doc> <a a2="2" a1="1" >123</a> </doc> ' );
7778 $ this ->module ->seeSoapResponseIncludes ('<a a2="2" a1="1" >123</a> ' );
7879 }
@@ -81,6 +82,7 @@ public function testSeeXmlEquals() {
8182 $ dom = new DOMDocument ();
8283 $ this ->module ->xmlResponse = $ dom ;
8384 $ xml = '<?xml version="1.0" encoding="UTF-8"?> <doc> <a a2="2" a1="1" >123</a> </doc> ' ;
85+ $ dom ->preserveWhiteSpace = false ;
8486 $ dom ->loadXML ($ xml );
8587 $ this ->module ->seeSoapResponseEquals ($ xml );
8688 }
You can’t perform that action at this time.
0 commit comments