cvs: php-src /ext/simplexml/tests 020.phpt

From: Date: Sun, 14 Mar 2004 15:33:16 +0000
Subject: cvs: php-src /ext/simplexml/tests 020.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-26630@lists.php.net to get a copy of this message
helly Sun Mar 14 10:33:16 2004 EDT Added files: /php-src/ext/simplexml/tests 020.phpt Log: Add new test http://cvs.php.net/co.php/php-src/ext/simplexml/tests/020.phpt?r=1.1&p=1 Index: php-src/ext/simplexml/tests/020.phpt +++ php-src/ext/simplexml/tests/020.phpt --TEST-- SimpleXML attribute compared to string --SKIPIF-- <?php if (!extension_loaded("simplexml")) print "skip"; ?> --FILE-- <?php $doc = simplexml_load_string('<root><name attr="foo">bar</name></root>'); print $doc->name["attr"]; print "\n"; if ($doc->name["attr"] == "foo") { print "Works\n"; } else { print "Error\n"; } ?> ===DONE=== --EXPECT-- foo Works ===DONE===

« previous php.cvs (#26630) next »