1--TEST--
2SPL: RecursiveIteratorIterator, setMaxDepth check parameter count
3--CREDITS--
4Sean Burlington www.practicalweb.co.uk
5TestFest London May 2009
6--FILE--
7<?php
8  //line 681 ...
9  $array = array(array(7,8,9),1,2,3,array(4,5,6));
10$recursiveArrayIterator = new RecursiveArrayIterator($array);
11$test = new RecursiveIteratorIterator($recursiveArrayIterator);
12
13//var_dump($test->current());
14$test->setMaxDepth();
15$test->setMaxDepth(1);
16$test->setMaxDepth(1,2);
17$test->setMaxDepth(1,2,3);
18
19//var_dump($test->current());
20
21
22?>
23===DONE===
24--EXPECTF--
25Warning: RecursiveIteratorIterator::setMaxDepth() expects at most 1 parameter, 2 given in %s on line 10
26
27Warning: RecursiveIteratorIterator::setMaxDepth() expects at most 1 parameter, 3 given in %s on line 11
28===DONE===
29