php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/reflection/tests/ |
files >> //opt/php-7.0.1/ext/reflection/tests/ReflectionMethod_invoke_error2.phpt |
--TEST-- ReflectionMethod::invoke() further errors --FILE-- <?php class TestClass { public function methodWithArgs($a, $b) { echo "Called methodWithArgs($a, $b)\n"; } } $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); $testClassInstance = new TestClass(); echo "\nMethod with args:\n"; var_dump($methodWithArgs->invoke($testClassInstance)); ?> --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(, ) NULLy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`