Lines Matching refs:getClosure
2 Test ReflectionMethod::getClosure() function : error functionality
5 /* Prototype : public mixed ReflectionFunction::getClosure()
11 echo "*** Testing ReflectionMethod::getClosure() : error conditions ***\n";
38 echo "\n-- Testing ReflectionMethod::getClosure() function with more than expected no. of arguments…
39 var_dump( $staticmethod->getClosure( 'foobar' ) );
40 var_dump( $staticmethod->getClosure( 'foo', 'bar' ) );
41 var_dump( $method->getClosure( $object, 'foobar' ) );
43 echo "\n-- Testing ReflectionMethod::getClosure() function with Zero arguments --\n";
44 $closure = $method->getClosure();
46 echo "\n-- Testing ReflectionMethod::getClosure() function with Zero arguments --\n";
48 var_dump( $method->getClosure( $fakeobj ) );
56 *** Testing ReflectionMethod::getClosure() : error conditions ***
58 -- Testing ReflectionMethod::getClosure() function with more than expected no. of arguments --
64 Warning: ReflectionMethod::getClosure() expects exactly 1 parameter, 2 given in %s on line %d
67 -- Testing ReflectionMethod::getClosure() function with Zero arguments --
69 Warning: ReflectionMethod::getClosure() expects exactly 1 parameter, 0 given in %s on line %d
71 -- Testing ReflectionMethod::getClosure() function with Zero arguments --