get_parent_class_error_001.phpt [plain text]
--TEST--
Test get_parent_class() function : error conditions - wrong number of args.
--FILE--
<?php
echo "*** Testing get_parent_class() : error conditions ***\n";
echo "\n-- Testing get_parent_class() function with more than expected no. of arguments --\n";
$object = 1;
$extra_arg = 10;
var_dump( get_parent_class($object, $extra_arg) );
echo "Done";
?>
--EXPECTF--
*** Testing get_parent_class() : error conditions ***
-- Testing get_parent_class() function with more than expected no. of arguments --
Warning: get_parent_class() expects at most 1 parameter, 2 given in %s on line 15
NULL
Done