cvs: php-src /ext/spl/tests array_023.phpt

From: Date: Fri, 14 Dec 2007 04:49:47 +0000
Subject: cvs: php-src /ext/spl/tests array_023.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-47489@lists.php.net to get a copy of this message
davidc Fri Dec 14 04:49:47 2007 UTC Modified files: /php-src/ext/spl/tests array_023.phpt Log: - Added other test with some unicode words (Sorry if this chinese word turns out to be offensive I have no clue what it means, just copied it) http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/array_023.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/spl/tests/array_023.phpt diff -u php-src/ext/spl/tests/array_023.phpt:1.1 php-src/ext/spl/tests/array_023.phpt:1.2 --- php-src/ext/spl/tests/array_023.phpt:1.1 Fri Dec 14 04:23:09 2007 +++ php-src/ext/spl/tests/array_023.phpt Fri Dec 14 04:49:47 2007 @@ -19,6 +19,22 @@ var_dump($a); var_dump($a->var); +class Sláinte extends ArrayObject +{ + public $var = 'tá'; + protected $bar = 'trí'; + private $foo = '年'; +} + +$a = new Sláinte(); +var_dump($a); +var_dump($a->var); + +$a = unserialize(serialize($a)); + +var_dump($a); +var_dump($a->var); + ?> --EXPECT-- object(Name)#1 (4) { @@ -45,3 +61,27 @@ } } string(1) "a" +object(Sláinte)#1 (4) { + ["var"]=> + string(3) "tá" + ["bar":protected]=> + string(4) "trí" + ["foo":"Sláinte":private]=> + string(3) "年" + ["storage":"ArrayObject":private]=> + array(0) { + } +} +string(3) "tá" +object(Sláinte)#2 (4) { + ["var"]=> + string(3) "tá" + ["bar":protected]=> + string(4) "trí" + ["foo":"Sláinte":private]=> + string(3) "年" + ["storage":"ArrayObject":private]=> + array(0) { + } +} +string(3) "tá"

« previous php.cvs (#47489) next »