From 7ef8b1226e1066b2e4407f8e18e3e48d309828b4 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 16 Dec 2003 19:49:33 +0000 Subject: [PATCH] Add test for string conversion capabilities when used with echo/print. --- ext/simplexml/tests/011.phpt | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 ext/simplexml/tests/011.phpt diff --git a/ext/simplexml/tests/011.phpt b/ext/simplexml/tests/011.phpt new file mode 100755 index 0000000000..6cb6e5baf7 --- /dev/null +++ b/ext/simplexml/tests/011.phpt @@ -0,0 +1,48 @@ +--TEST-- +SimpleXML and echo/print +--SKIPIF-- + +--FILE-- + + + bar + baz1 + baz2 + +EOF; + +$sxe = simplexml_load_string($xml); + +echo "===BAR===\n"; +echo $sxe->bar; +echo "\n"; + +echo "===BAZ===\n"; +echo $sxe->baz; +echo "\n"; + +echo "===BAZ0===\n"; +echo $sxe->baz[0]; +echo "\n"; + +echo "===BAZ1===\n"; +print $sxe->baz[1]; +echo "\n"; +?> +===DONE=== +--EXPECT-- +===BAR=== +bar +===BAZ=== +Array +===BAZ0=== +baz1 +===BAZ1=== +baz2 +===DONE=== -- 2.40.0