summaryrefslogtreecommitdiff
path: root/Zend/tests/bug32993.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug32993.phpt')
-rwxr-xr-xZend/tests/bug32993.phpt29
1 files changed, 0 insertions, 29 deletions
diff --git a/Zend/tests/bug32993.phpt b/Zend/tests/bug32993.phpt
deleted file mode 100755
index 88fb0230b6..0000000000
--- a/Zend/tests/bug32993.phpt
+++ /dev/null
@@ -1,29 +0,0 @@
---TEST--
-Bug #32993 (implemented Iterator function current() don't throw exception)
---FILE--
-<?php
-class Test implements Iterator {
-
- public $arr = array();
-
- public function rewind() { return reset($this->arr); }
- public function current() { throw new Exception(); }
- public function key() { return key($this->arr); }
- public function next() { return next($this->arr); }
- public function valid() { return (current($this->arr) !== false); }
-}
-
-$t = new Test();
-$t->arr = array(1, 2, 3);
-
-try {
- foreach ($t as $v) {
- echo "$v\n";
- }
-} catch (Exception $e) {
- ; // handle exception
-}
-echo "ok\n";
-?>
---EXPECT--
-ok