1--TEST--
2SPL: RecursiveIteratorIterator::getSubIterator() returns iterator passed in constructor
3--CREDITS--
4Matt Raines matt@raines.me.uk
5#testfest London 2009-05-09
6--FILE--
7<?php
8$sample_array = array(1, 2, array(3, 4));
9
10$sub_iterator = new RecursiveArrayIterator($sample_array);
11$not_sub_iterator = new RecursiveArrayIterator($sample_array);
12$iterator = new RecursiveIteratorIterator($sub_iterator);
13
14var_dump($iterator->getSubIterator() === $sub_iterator);
15var_dump($iterator->getSubIterator() === $not_sub_iterator);
16?>
17--EXPECT--
18bool(true)
19bool(false)
20