get_declared_interfaces_error_001.phpt [plain text]
--TEST--
Test get_declared_interfaces() function : error conditions
--FILE--
<?php
echo "*** Testing get_declared_interfaces() : error conditions ***\n";
echo "\n-- Testing get_declared_interfaces() function with one argument --\n";
$extra_arg = 10;;
var_dump( get_declared_interfaces($extra_arg) );
echo "Done";
?>
--EXPECTF--
*** Testing get_declared_interfaces() : error conditions ***
-- Testing get_declared_interfaces() function with one argument --
Warning: get_declared_interfaces() expects exactly 0 parameters, 1 given in %s on line 13
NULL
Done