Annotation of embedaddon/php/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: ReflectionMethod::invokeArgs() further errors
3: --FILE--
4: <?php
5:
6: class TestClass {
7:
8: public function foo() {
9: echo "Called foo()\n";
10: var_dump($this);
11: return "Return Val";
12: }
13: }
14:
15: $foo = new ReflectionMethod('TestClass', 'foo');
16:
17: $testClassInstance = new TestClass();
18:
19: try {
20: var_dump($foo->invokeArgs($testClassInstance, true));
21: } catch (Exception $e) {
22: var_dump($e->getMessage());
23: }
24:
25: ?>
26: --EXPECTF--
1.1.1.2 ! misho 27: Catchable fatal error: Argument 2 passed to ReflectionMethod::invokeArgs() must be of the type array, boolean given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>