File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,12 @@ public function testPropPatchAndFetch() {
189189 $ body = preg_replace ("/xmlns(:[A-Za-z0-9_])?=( \"|\')DAV:( \"|\')/ " ,"xmlns \\1= \"urn:DAV \"" ,$ this ->response ->body );
190190 $ xml = simplexml_load_string ($ body );
191191 $ xml ->registerXPathNamespace ('d ' ,'urn:DAV ' );
192- $ xml ->registerXPathNamespace ('s ' ,'http://www.rooftopsolutions.nl/testnamespace ' );
192+ $ xml ->registerXPathNamespace ('bla ' ,'http://www.rooftopsolutions.nl/testnamespace ' );
193193
194- $ xpath ='//d:prop/s :someprop ' ;
194+ $ xpath ='//bla :someprop ' ;
195195 $ result = $ xml ->xpath ($ xpath );
196- $ this ->assertEquals ('somevalue ' ,(string )$ result [0 ]);
196+ $ this ->assertEquals (1 ,count ($ result ),'We couldn \'t find our new property in the response. Full response body: ' . "\n" . $ body );
197+ $ this ->assertEquals ('somevalue ' ,(string )$ result [0 ],'We couldn \'t find our new property in the response. Full response body: ' . "\n" . $ body );
197198
198199
199200 }
You can’t perform that action at this time.
0 commit comments