summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_048.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/iterator_048.phpt')
-rwxr-xr-xext/spl/tests/iterator_048.phpt38
1 files changed, 0 insertions, 38 deletions
diff --git a/ext/spl/tests/iterator_048.phpt b/ext/spl/tests/iterator_048.phpt
deleted file mode 100755
index 5e141d9c7f..0000000000
--- a/ext/spl/tests/iterator_048.phpt
+++ /dev/null
@@ -1,38 +0,0 @@
---TEST--
-SPL: RecursiveRegexIterator and exception in has/getChildren
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip"; ?>
---FILE--
-<?php
-
-class MyRecursiveRegexIterator extends RecursiveRegexIterator
-{
- function show()
- {
- foreach(new RecursiveIteratorIterator($this) as $k => $v)
- {
- var_dump($k);
- var_dump($v);
- }
- }
-
- function accept()
- {
- return $this->hasChildren() || parent::accept();
- }
-}
-
-$ar = new RecursiveArrayIterator(array('Foo', array('Bar'), 'FooBar', array('Baz'), 'Biz'));
-$it = new MyRecursiveRegexIterator($ar, '/Bar/');
-
-$it->show();
-
-?>
-===DONE===
-<?php exit(0); ?>
---EXPECTF--
-int(0)
-string(3) "Bar"
-int(2)
-string(6) "FooBar"
-===DONE===