From d78da85370b3b59d72a2a7535660ef5b96e6c493 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 23 Oct 2005 23:25:46 +0000 Subject: [PATCH] - Add new test --- ext/simplexml/tests/023.phpt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 ext/simplexml/tests/023.phpt diff --git a/ext/simplexml/tests/023.phpt b/ext/simplexml/tests/023.phpt new file mode 100755 index 0000000000..1e919ae564 --- /dev/null +++ b/ext/simplexml/tests/023.phpt @@ -0,0 +1,33 @@ +--TEST-- +SimpleXML: Attributes with entities +--SKIPIF-- + +--FILE-- + + + + +]> + +EOF; + +$sxe = simplexml_load_string($xml); + +var_dump($sxe); +var_dump($sxe['attr']); +?> +===DONE=== +--EXPECTF-- +object(SimpleXMLElement)#1 (1) { + ["attr"]=> + string(%d) "foo%sbar%sbaz" +} +object(SimpleXMLElement)#2 (1) { + [0]=> + string(%d) "foo%sbar%sbaz" +} +===DONE=== -- 2.40.0