cvs: php-src(PHP_5_3) /ext/spl/tests observer_008.phpt

From: Date: Sat, 17 Jan 2009 01:30:52 +0000
Subject: cvs: php-src(PHP_5_3) /ext/spl/tests observer_008.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-55690@lists.php.net to get a copy of this message
colder Sat Jan 17 01:30:52 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/spl/tests observer_008.phpt Log: MFH: Add tests for addAll/RemoveAll http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/observer_008.phpt?view=markup&rev=1.1 Index: php-src/ext/spl/tests/observer_008.phpt +++ php-src/ext/spl/tests/observer_008.phpt --TEST-- SPL: SplObjectStorage addAll/removeAll --FILE-- <?php class A extends SplObjectStorage { } $o1 = new StdClass; $o2 = new StdClass; $o3 = new StdClass; $a = new A; $a->attach($o1); $a->attach($o2); $b = new SplObjectSTorage(); $b->attach($o2); $b->attach($o3); $a->addAll($b); var_dump($a->count()); $a->detach($o3); var_dump($a->count()); $a->removeAll($b); var_dump($a->count()); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- int(3) int(2) int(1) ===DONE===

« previous php.cvs (#55690) next »