diff options
author | Marcus Boerger <helly@php.net> | 2005-09-18 17:15:04 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-09-18 17:15:04 +0000 |
commit | 7d918fae4c3ab0102258b7e76059c00151a83b3c (patch) | |
tree | 0c964b2db396f93105145e2d92cbe94ed3758c44 /ext/spl/tests/array_009.phpt | |
parent | 7e762989e700d4adf72867cc10c99195a4681950 (diff) | |
download | php-git-7d918fae4c3ab0102258b7e76059c00151a83b3c.tar.gz |
- Synch naming/move changes with HEAD
- Update tests/docu
# New functionality in CachingIterator/RecursiveIteratorIterator not MFHed
Diffstat (limited to 'ext/spl/tests/array_009.phpt')
-rwxr-xr-x | ext/spl/tests/array_009.phpt | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/ext/spl/tests/array_009.phpt b/ext/spl/tests/array_009.phpt index fce2b42df2..0431cca77e 100755 --- a/ext/spl/tests/array_009.phpt +++ b/ext/spl/tests/array_009.phpt @@ -5,22 +5,9 @@ SPL: ArrayIterator implementing RecursiveIterator --FILE-- <?php -class RecursiceArrayIterator extends ArrayIterator implements RecursiveIterator -{ - function hasChildren() - { - return is_array($this->current()); - } - - function getChildren() - { - return new RecursiceArrayIterator($this->current()); - } -} - $array = array(1, 2 => array(21, 22 => array(221, 222), 23 => array(231)), 3); -$dir = new RecursiveIteratorIterator(new RecursiceArrayIterator($array), RecursiveIteratorIterator::LEAVES_ONLY); +$dir = new RecursiveIteratorIterator(new RecursiveArrayIterator($array), RecursiveIteratorIterator::LEAVES_ONLY); foreach ($dir as $file) { print "$file\n"; |