blob: 6c81728f9123cc7aa5e2c558827769edbed49468 (
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 (Error $e) {
var_dump($e->getMessage());
}
?>
--EXPECT--
string(89) "Argument 2 passed to ReflectionMethod::invokeArgs() must be of the type array, bool given"
|