diff options
| author | Marcus Boerger <helly@php.net> | 2004-01-17 15:57:06 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2004-01-17 15:57:06 +0000 |
| commit | 9c2e37e89a2e89b19029807aa413ac830c500322 (patch) | |
| tree | 74f519c3b3486cbf71f22a6c809bffc8de9ab034 /ext/simplexml/tests/010.phpt | |
| parent | 9df72efb7c4d3016e255b173bd001693320dd5af (diff) | |
| download | php-git-9c2e37e89a2e89b19029807aa413ac830c500322.tar.gz | |
Add test for inherited simplexml classes
Diffstat (limited to 'ext/simplexml/tests/010.phpt')
| -rw-r--r-- | ext/simplexml/tests/010.phpt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ext/simplexml/tests/010.phpt b/ext/simplexml/tests/010.phpt new file mode 100644 index 0000000000..628c945098 --- /dev/null +++ b/ext/simplexml/tests/010.phpt @@ -0,0 +1,47 @@ +--TEST-- +SimpleXML: Simple Inheritance +--SKIPIF-- +<?php if (!extension_loaded("simplexml")) print "skip"; ?> +--FILE-- +<?php + +class simplexml_inherited extends simplexml_element +{ +} + +$sxe = simplexml_load_file(dirname(__FILE__).'/sxe.xml', 'simplexml_inherited'); + +print_r($sxe); + +echo "---Done---\n"; + +?> +--EXPECT-- +simplexml_inherited Object +( + [elem1] => simplexml_inherited Object + ( + [comment] => simplexml_inherited Object + ( + ) + + [elem2] => simplexml_inherited Object + ( + [elem3] => simplexml_inherited Object + ( + [elem4] => simplexml_inherited Object + ( + [test] => simplexml_inherited Object + ( + ) + + ) + + ) + + ) + + ) + +) +---Done--- |
