From: Marcus Boerger Date: Sun, 23 Oct 2005 23:25:46 +0000 (+0000) Subject: - Add new test X-Git-Tag: RELEASE_0_9_1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d78da85370b3b59d72a2a7535660ef5b96e6c493;p=php - Add new test --- 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===