From decc3fc6e63eb0b0f09dbe94753a5905f617736b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 14 Mar 2004 15:33:15 +0000 Subject: [PATCH] Add new test --- ext/simplexml/tests/020.phpt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 ext/simplexml/tests/020.phpt 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=== -- 2.50.1