1--TEST-- 2ReflectionMethod::invokeArgs() further errors 3--FILE-- 4<?php 5 6class 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 19try { 20 var_dump($foo->invokeArgs($testClassInstance, true)); 21} catch (Error $e) { 22 var_dump($e->getMessage()); 23} 24 25?> 26--EXPECT-- 27string(92) "Argument 2 passed to ReflectionMethod::invokeArgs() must be of the type array, boolean given" 28