Skip to content

Commit 06b95de

Browse files
committed
soap test fixed
1 parent 7198474 commit 06b95de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/Codeception/Module/SoapTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)