diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-11-05 10:25:57 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-11-05 10:25:57 +0100 |
commit | aec191bc6cbb83884466800a750ecad0b37e254f (patch) | |
tree | f52fe2b9551056580c5c519fb78a3c5600e1034a /tests/php/include | |
parent | af530282f530580c1ed7bc184df0a727068275e1 (diff) |
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
Diffstat (limited to 'tests/php/include')
-rw-r--r-- | tests/php/include/valueiterator/1.php | 76 |
1 files changed, 0 insertions, 76 deletions
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 @@ -<?php - -class SimpleClass { - public $cl0_float = 3.14; - public $cl0_str1 = 'public str1'; - private $cl0_str2 = 'private str2'; - protected $cl0_str3 = 'protected str3'; -} - -class impIterator implements Iterator { - private $position = 0; - private $array = array( - "firstElement", - "secondElement", - "lastelEment", - ); - - public function __construct() { - $this->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"; - } -} - - - - - - - - - - - - - |