helly Sat Oct 29 17:01:04 2005 EDT Modified files: /php-src/ext/spl/tests sxe_001.phpt Log: - Use var_dump() and fix test expectations http://cvs.php.net/diff.php/php-src/ext/spl/tests/sxe_001.phpt?r1=1.2&r2=1.3&ty=u Index: php-src/ext/spl/tests/sxe_001.phpt diff -u php-src/ext/spl/tests/sxe_001.phpt:1.2 php-src/ext/spl/tests/sxe_001.phpt:1.3 --- php-src/ext/spl/tests/sxe_001.phpt:1.2 Wed Jul 20 03:33:19 2005 +++ php-src/ext/spl/tests/sxe_001.phpt Sat Oct 29 17:01:03 2005 @@ -26,38 +26,39 @@ </sxe> EOF; -$sxe = simplexml_load_string($xml, 'SimpleXMLIterator'); - -print_r($sxe); +var_dump(simplexml_load_string($xml, 'SimpleXMLIterator')); ?> ===DONE=== ---EXPECT-- -SimpleXMLIterator Object -( - [elem1] => SimpleXMLIterator Object - ( - [comment] => SimpleXMLIterator Object - ( - ) - - [elem2] => SimpleXMLIterator Object - ( - [elem3] => SimpleXMLIterator Object - ( - [elem4] => SimpleXMLIterator Object - ( - [test] => SimpleXMLIterator Object - ( - ) - - ) - - ) - - ) - - ) - -) +--EXPECTF-- +object(SimpleXMLIterator)#%d (2) { + ["@attributes"]=> + array(1) { + ["id"]=> + string(5) "elem1" + } + ["elem1"]=> + object(SimpleXMLIterator)#%d (3) { + ["@attributes"]=> + array(1) { + ["attr1"]=> + string(5) "first" + } + ["comment"]=> + object(SimpleXMLIterator)#%d (0) { + } + ["elem2"]=> + object(SimpleXMLIterator)#%d (1) { + ["elem3"]=> + object(SimpleXMLIterator)#%d (1) { + ["elem4"]=> + object(SimpleXMLIterator)#%d (1) { + ["test"]=> + object(SimpleXMLIterator)#%d (0) { + } + } + } + } + } +} ===DONE===
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php