mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00

RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7 Pending changes regarding naming of BaseException and whether it should be an interface.
27 lines
551 B
PHP
27 lines
551 B
PHP
--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 (EngineException $e) {
|
|
var_dump($e->getMessage());
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(92) "Argument 2 passed to ReflectionMethod::invokeArgs() must be of the type array, boolean given"
|