Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/reflection/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/reflection/tests/ReflectionMethod_invokeArgs_error1.phpt |
--TEST-- ReflectionMethod:invokeArgs() errors --FILE-- <?php class TestClass { public function methodWithArgs($a, $b) { echo "Called methodWithArgs($a, $b)\n"; } } abstract class AbstractClass { abstract function foo(); } $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); $testClassInstance = new TestClass(); echo "\nMethod with args:\n"; var_dump($methodWithArgs->invokeArgs($testClassInstance, array())); ?> --EXPECTF-- Method with args: Warning: Missing argument 1 for TestClass::methodWithArgs() in %s on line %d Warning: Missing argument 2 for TestClass::methodWithArgs() in %s on line %d Notice: Undefined variable: a in %s on line %d Notice: Undefined variable: b in %s on line %d Called methodWithArgs(, ) NULL
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare