From: Marcus Boerger Date: Sun, 26 Oct 2003 01:04:25 +0000 (+0000) Subject: Add test X-Git-Tag: RELEASE_2_0_0RC1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad172161e0e88d514b57694c71850b3bae4f26ac;p=php Add test --- diff --git a/ext/simplexml/tests/005.phpt b/ext/simplexml/tests/005.phpt new file mode 100755 index 0000000000..5ca0cc01b1 --- /dev/null +++ b/ext/simplexml/tests/005.phpt @@ -0,0 +1,21 @@ +--TEST-- +SimpleXML and text data +--SKIPIF-- + +--FILE-- +elem1->elem2)); +var_dump(trim($sxe->elem1->elem2->elem3)); +var_dump(trim($sxe->elem1->elem2->elem3->elem4)); + +echo "---Done---\n"; + +?> +--EXPECT-- +string(28) "Here we have some text data." +string(19) "And here some more." +string(15) "Wow once again." +---Done--- diff --git a/ext/simplexml/tests/005.xml b/ext/simplexml/tests/005.xml new file mode 100755 index 0000000000..b7cce75843 --- /dev/null +++ b/ext/simplexml/tests/005.xml @@ -0,0 +1,20 @@ + + +%incent; +]> + + Plain text. + + + + Here we have some text data. + + And here some more. + + Wow once again. + + + + + \ No newline at end of file