cvs: php-src /ext/simplexml/tests 010.phpt

From: Date: Sat, 17 Jan 2004 15:57:06 +0000
Subject: cvs: php-src /ext/simplexml/tests 010.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25692@lists.php.net to get a copy of this message
helly Sat Jan 17 10:57:06 2004 EDT Modified files: /php-src/ext/simplexml/tests 010.phpt Log: Add test for inherited simplexml classes Index: php-src/ext/simplexml/tests/010.phpt diff -u /dev/null php-src/ext/simplexml/tests/010.phpt:1.3 --- /dev/null Sat Jan 17 10:57:06 2004 +++ php-src/ext/simplexml/tests/010.phpt Sat Jan 17 10:57:06 2004 @@ -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---

« previous php.cvs (#25692) next »