/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/request38992.phpt
--TEST-- Request #38992 (invoke() and invokeArgs() static method calls should match) --FILE-- <?php class MyClass { public static function doSomething() { echo "Did it!\n"; } } $r = new ReflectionMethod('MyClass', 'doSomething'); try { $r->invoke('WTF?'); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { $r->invokeArgs('WTF?', array()); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- ReflectionMethod::invoke(): Argument #1 ($object) must be of type ?object, string given ReflectionMethod::invokeArgs(): Argument #1 ($object) must be of type ?object, string given
Copyright ©2k19 -
Hexid
|
Tex7ure