cvs: php-src /ext/simplexml/tests profile06.phpt profile07.phpt profile10.phpt

From: Date: Sat, 17 Jan 2004 16:39:52 +0000
Subject: cvs: php-src /ext/simplexml/tests profile06.phpt profile07.phpt profile10.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25694@lists.php.net to get a copy of this message
sterling Sat Jan 17 11:39:52 2004 EDT Modified files: /php-src/ext/simplexml/tests profile06.phpt profile07.phpt profile10.phpt Log: remove the parser errors here, so they accurately reflect what should happen. Index: php-src/ext/simplexml/tests/profile06.phpt diff -u php-src/ext/simplexml/tests/profile06.phpt:1.2 php-src/ext/simplexml/tests/profile06.phpt:1.3 --- php-src/ext/simplexml/tests/profile06.phpt:1.2 Fri Jan 16 17:26:09 2004 +++ php-src/ext/simplexml/tests/profile06.phpt Sat Jan 17 11:39:52 2004 @@ -11,7 +11,8 @@ </root> '); -echo $root->child->attributes('reserved')['attribute']; +$attr = $root->child->attributes('reserved'); +echo $attr['attribute']; echo "\n---Done---\n"; ?> --EXPECT-- Index: php-src/ext/simplexml/tests/profile07.phpt diff -u php-src/ext/simplexml/tests/profile07.phpt:1.2 php-src/ext/simplexml/tests/profile07.phpt:1.3 --- php-src/ext/simplexml/tests/profile07.phpt:1.2 Fri Jan 16 17:26:09 2004 +++ php-src/ext/simplexml/tests/profile07.phpt Sat Jan 17 11:39:52 2004 @@ -13,8 +13,11 @@ $root->register_ns('myns', 'reserved-ns'); -echo $root->child->attributes('reserved')['attribute']; -echo $root->child->attributes('myns')['attribute']; +$rsattr = $root->child->attributes('reserved'); +$myattr = $root->child->attributes('myns'); + +echo $rsattr['attribute']; +echo $myattr['attribute']; echo "\n---Done---\n"; ?> --EXPECT-- Index: php-src/ext/simplexml/tests/profile10.phpt diff -u php-src/ext/simplexml/tests/profile10.phpt:1.2 php-src/ext/simplexml/tests/profile10.phpt:1.3 --- php-src/ext/simplexml/tests/profile10.phpt:1.2 Fri Jan 16 17:26:09 2004 +++ php-src/ext/simplexml/tests/profile10.phpt Sat Jan 17 11:39:52 2004 @@ -11,9 +11,12 @@ </root> '); -echo $root->child->attributes('reserved')['attribute']; +$rsattr = $root->child->attributes('reserved'); +$spattr = $root->child->attributes('special'); + +echo $rsattr['attribute']; echo "\n"; -echo $root->child->attributes('special')['attribute']; +echo $spattr['attribute']; foreach ($root->child['attribute'] as $attr) { echo "$attr\n"; }

« previous php.cvs (#25694) next »