diff options
author | Marcus Boerger <helly@php.net> | 2003-10-26 01:04:25 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-10-26 01:04:25 +0000 |
commit | ad172161e0e88d514b57694c71850b3bae4f26ac (patch) | |
tree | 0d2e95690cb228176325896d939c8050897ddacb /ext/simplexml/tests/005.phpt | |
parent | 2318a83e810875481ee07a36568069c76d6d75b1 (diff) | |
download | php-git-ad172161e0e88d514b57694c71850b3bae4f26ac.tar.gz |
Add test
Diffstat (limited to 'ext/simplexml/tests/005.phpt')
-rwxr-xr-x | ext/simplexml/tests/005.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
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-- +<?php if (!extension_loaded("simplexml")) print "skip"; ?> +--FILE-- +<?php + +$sxe = simplexml_load_file(dirname(__FILE__).'/005.xml'); + +var_dump(trim($sxe->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--- |