From aec191bc6cbb83884466800a750ecad0b37e254f Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 5 Nov 2015 10:25:57 +0100 Subject: remove test framework, it never works, most of the bugs found by the test framework turn out to be caused by errors in the tests instead of errors in the real code, people complain about it all the time, and basically this whole test framework causes more problems than it solves, solves issue #215 and solves issue #221 --- tests/php/include/valueiterator/1.php | 76 ----------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 tests/php/include/valueiterator/1.php (limited to 'tests/php/include') diff --git a/tests/php/include/valueiterator/1.php b/tests/php/include/valueiterator/1.php deleted file mode 100644 index 984a77f..0000000 --- a/tests/php/include/valueiterator/1.php +++ /dev/null @@ -1,76 +0,0 @@ -position = 0; - } - - function rewind() { - $this->position = 0; - } - - function current() { - return $this->array[$this->position]; - } - - function key() { - return 'key_' . $this->position; - } - - function next() { - ++$this->position; - } - - function valid() { - return isset($this->array[$this->position]); - } - - function __destruct() { - echo "~impIterator\n"; - } -} - -class impIterAggr1 implements IteratorAggregate { - public function getIterator() { - return new ArrayIterator(new SimpleClass); - } - function __destruct() { - echo "~impIterAggr1\n"; - } -} - -class impIterAggr2 implements IteratorAggregate { - public function getIterator() { - return new impIterator(); - } - function __destruct() { - echo "~impIterAggr2\n"; - } -} - - - - - - - - - - - - - -- cgit v1.2.3