From cccb4e446e12b19807c6bf38c7a1b32089d39bbe Mon Sep 17 00:00:00 2001 From: andy wharmby Date: Mon, 3 Aug 2009 22:40:58 +0000 Subject: [PATCH] Add missing SKIPIF sections to tests --- ext/simplexml/tests/bug36611.phpt | 9 ++++----- ext/simplexml/tests/bug42369.phpt | 7 ++++--- ext/simplexml/tests/bug43221.phpt | 7 ++++++- ext/simplexml/tests/bug44478.phpt | 5 +++++ ext/simplexml/tests/bug45553.phpt | 7 ++++++- ext/simplexml/tests/bug46003.phpt | 7 ++++++- ext/simplexml/tests/bug46047.phpt | 7 ++++++- ext/simplexml/tests/bug46048.phpt | 6 ++++-- 8 files changed, 41 insertions(+), 14 deletions(-) diff --git a/ext/simplexml/tests/bug36611.phpt b/ext/simplexml/tests/bug36611.phpt index a13847c43a..006e8c4c02 100644 --- a/ext/simplexml/tests/bug36611.phpt +++ b/ext/simplexml/tests/bug36611.phpt @@ -19,14 +19,13 @@ $xml = simplexml_load_string ($xml_str) ; $val = 1; var_dump($val); -$obj->pos["act_idx"] = $val; +$xml->pos["act_idx"] = $val; var_dump($val) ; -echo "Done\n"; ?> +===DONE=== --EXPECTF-- int(1) - -Strict Standards: Creating default object from empty value in %s on line %d int(1) -Done +===DONE=== + \ No newline at end of file diff --git a/ext/simplexml/tests/bug42369.phpt b/ext/simplexml/tests/bug42369.phpt index e5df81460d..d65258a6f0 100644 --- a/ext/simplexml/tests/bug42369.phpt +++ b/ext/simplexml/tests/bug42369.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #42369 (Implicit conversion to string leaks memory) --SKIPIF-- - + --FILE-- '; @@ -17,9 +17,10 @@ Bug #42369 (Implicit conversion to string leaks memory) md5($x->x); } - echo 'done' . PHP_EOL; ?> +===DONE=== --EXPECT-- explicit conversion no conversion -done \ No newline at end of file +===DONE=== + \ No newline at end of file diff --git a/ext/simplexml/tests/bug43221.phpt b/ext/simplexml/tests/bug43221.phpt index 6973d091c7..53b6efdccd 100644 --- a/ext/simplexml/tests/bug43221.phpt +++ b/ext/simplexml/tests/bug43221.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #43221 (SimpleXML adding default namespace in addAttribute) +--SKIPIF-- + --FILE-- '); @@ -9,7 +11,10 @@ $n->addAttribute("c", "d", "http://bar.com"); $n->addAttribute("foo:e", "f", "http://bar.com"); print_r($xml->asXml()); ?> +===DONE=== --EXPECTF-- Warning: SimpleXMLElement::addAttribute(): Attribute requires prefix for namespace in %sbug43221.php on line %d -value \ No newline at end of file +value +===DONE=== + \ No newline at end of file diff --git a/ext/simplexml/tests/bug44478.phpt b/ext/simplexml/tests/bug44478.phpt index 5c21d75c8b..17a26f949b 100644 --- a/ext/simplexml/tests/bug44478.phpt +++ b/ext/simplexml/tests/bug44478.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #44478 (Inconsistent behaviour when assigning new nodes) +--SKIPIF-- + --FILE-- '); @@ -15,6 +17,7 @@ print $xml_element->node2."\n"; print $xml_element->asXML(); ?> +===DONE=== --EXPECTF-- a & b a & b @@ -22,3 +25,5 @@ a & b a & b a & ba & b +===DONE=== + \ No newline at end of file diff --git a/ext/simplexml/tests/bug45553.phpt b/ext/simplexml/tests/bug45553.phpt index 37a46f4276..b355c48696 100644 --- a/ext/simplexml/tests/bug45553.phpt +++ b/ext/simplexml/tests/bug45553.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #45553 (Using XPath to return values for attributes with a namespace does not work) +--SKIPIF-- + --FILE-- xpath("/xml/data/@label"); echo $atts[0] . "\n"; ?> +===DONE=== --EXPECTF-- I am A I am a:Nothing I am a:A I am a:Nothing -I am Nothing \ No newline at end of file +I am Nothing +===DONE=== + \ No newline at end of file diff --git a/ext/simplexml/tests/bug46003.phpt b/ext/simplexml/tests/bug46003.phpt index a10b018725..712675c097 100644 --- a/ext/simplexml/tests/bug46003.phpt +++ b/ext/simplexml/tests/bug46003.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #46003 (isset on nonexisting nodes return unexpected results) +--SKIPIF-- + --FILE-- o->zz)); var_dump(isset($x->o->text)); var_dump(isset($x->o->xx)); ?> +===DONE=== --EXPECTF-- bool(true) bool(false) bool(true) bool(false) bool(false) -bool(true) \ No newline at end of file +bool(true) +===DONE=== + \ No newline at end of file diff --git a/ext/simplexml/tests/bug46047.phpt b/ext/simplexml/tests/bug46047.phpt index 37f31cdeb6..0438154823 100644 --- a/ext/simplexml/tests/bug46047.phpt +++ b/ext/simplexml/tests/bug46047.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #46047 (SimpleXML converts empty nodes into object with nested array) +--SKIPIF-- + --FILE-- ', @@ -12,6 +14,7 @@ print_r($xml); $xml = new SimpleXMLElement(''); print_r($xml); ?> +===DONE=== --EXPECTF-- SimpleXMLElement Object ( @@ -45,4 +48,6 @@ SimpleXMLElement Object ( ) -) \ No newline at end of file +) +===DONE=== + \ No newline at end of file diff --git a/ext/simplexml/tests/bug46048.phpt b/ext/simplexml/tests/bug46048.phpt index e3eb4f5462..97fc9ed083 100644 --- a/ext/simplexml/tests/bug46048.phpt +++ b/ext/simplexml/tests/bug46048.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #46048 (SimpleXML top-level @attributes not part of iterator) +--SKIPIF-- + --FILE-- +===DONE=== --EXPECT-- Array ( @@ -21,4 +23,4 @@ Array [key] => value ) -Done +===DONE=== -- 2.40.0