summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian MARGAINE <florian@margaine.com>2014-11-09 22:58:45 +0100
committerFlorian MARGAINE <florian@margaine.com>2014-11-10 21:44:48 +0100
commitdf1b722b677d2b7fbd8e1906f88e22ccc2e3f23c (patch)
tree97f06ae8b0e76fa22868706b608e20005d4b7a81
parent62f6c3c0c4974559e1afefb4b6725e98c359a679 (diff)
downloadphp-git-df1b722b677d2b7fbd8e1906f88e22ccc2e3f23c.tar.gz
Fixes simplexml test
-rw-r--r--ext/simplexml/tests/SimpleXMLElement_xpath.phpt10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/simplexml/tests/SimpleXMLElement_xpath.phpt b/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
index 4a613c2e51..334b6c81db 100644
--- a/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
+++ b/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
@@ -2,7 +2,11 @@
Testing xpath() with invalid XML
--FILE--
<?php
-$xml = @simplexml_load_string("XXXXXXX^",$x,0x6000000000000001);
+$xml = simplexml_load_string("XXXXXXX^",$x,0x6000000000000001);
var_dump($xml->xpath("BBBB"));
---EXPECT--
-bool(false)
+--EXPECTF--
+Notice: Undefined variable: x in %s on line %d
+
+Warning: simplexml_load_string() expects parameter 3 to be long, double given in %s on line %d
+
+Catchable fatal error: Call to a member function xpath() on null in %s on line %d \ No newline at end of file