blob: 5fc756424551a3dc370e5c333ef42cd14bb2ab77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--TEST--
ReflectionMethod::invokeArgs() further errors
--FILE--
<?php
class TestClass {
public function foo() {
echo "Called foo()\n";
var_dump($this);
return "Return Val";
}
}
$foo = new ReflectionMethod('TestClass', 'foo');
$testClassInstance = new TestClass();
try {
var_dump($foo->invokeArgs($testClassInstance, true));
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
Catchable fatal error: Argument 2 passed to ReflectionMethod::invokeArgs() must be of the type array, boolean given in %s on line %d
|