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

From: Date: Sun, 24 Aug 2008 16:46:17 +0000
Subject: cvs: php-src /ext/spl/tests iterator_068.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-52641@lists.php.net to get a copy of this message
helly Sun Aug 24 16:46:17 2008 UTC Added files: /php-src/ext/spl/tests iterator_068.phpt Log: - Add new test http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/iterator_068.phpt?view=markup&rev=1.1 Index: php-src/ext/spl/tests/iterator_068.phpt +++ php-src/ext/spl/tests/iterator_068.phpt --TEST-- SPL: Iterator: Overloaded object and destruction --FILE-- <?php class Test implements Iterator { function foo() { echo __METHOD__ . "()\n"; } function rewind() {} function valid() {} function current() {} function key() {} function next() {} } class TestIteratorIterator extends IteratorIterator { function __destruct() { echo __METHOD__ . "()\n"; $this->foo(); } } $obj = new TestIteratorIterator(new Test); $obj->foo(); unset($obj); ?> ===DONE=== --EXPECT-- Test::foo() TestIteratorIterator::__destruct() Test::foo() ===DONE===

« previous php.cvs (#52641) next »