summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_043.phpt
blob: c49e334733eb7ae6b83db0d39b9f21ba70c068d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
SPL: RecursiveCachingIterator and uninitialized getChildren()
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php

$it = new RecursiveCachingIterator(new RecursiveArrayIterator(array(1,2)));

var_dump($it->getChildren());
$it->rewind();
var_dump($it->getChildren());

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
NULL
NULL
===DONE===