From: Marcus Boerger Date: Sun, 14 Mar 2004 15:33:15 +0000 (+0000) Subject: Add new test X-Git-Tag: php-5.0.0RC1RC1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=decc3fc6e63eb0b0f09dbe94753a5905f617736b;p=php Add new test --- diff --git a/ext/simplexml/tests/020.phpt b/ext/simplexml/tests/020.phpt new file mode 100755 index 0000000000..a2a328736c --- /dev/null +++ b/ext/simplexml/tests/020.phpt @@ -0,0 +1,21 @@ +--TEST-- +SimpleXML attribute compared to string +--SKIPIF-- + +--FILE-- +bar'); +print $doc->name["attr"]; +print "\n"; +if ($doc->name["attr"] == "foo") { + print "Works\n"; +} else { + print "Error\n"; +} +?> +===DONE=== +--EXPECT-- +foo +Works +===DONE===