--TEST-- SPL: RecursiveTreeIterator::setPrefixPart() Test arguments --CREDITS-- Roshan Abraham (roshanabrahams@gmail.com) TestFest London May 2009 --FILE-- array("b") ); $it = new RecursiveArrayIterator($arr); $it = new RecursiveTreeIterator($it); $it->setPrefixPart(1); // Should throw a warning as setPrefixPart expects 2 arguments $a = new stdClass(); $it->setPrefixPart($a, 1); // Should throw a warning as setPrefixPart expects argument 1 to be long integer $it->setPrefixPart(1, $a); // Should throw a warning as setPrefixPart expects argument 2 to be a string ?> ===DONE=== --EXPECTF-- Warning: RecursiveTreeIterator::setPrefixPart() expects exactly 2 parameters, 1 given in %s on line %d Warning: RecursiveTreeIterator::setPrefixPart() expects parameter 1 to be integer, object given in %s on line %d Warning: RecursiveTreeIterator::setPrefixPart() expects parameter 2 to be %binary_string_optional%, object given in %s on line %d ===DONE===