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/ReflectionClass_FileInfo_error.phpt |
--TEST-- ReflectionClass::getFileName(), ReflectionClass::getStartLine(), ReflectionClass::getEndLine() - bad params --FILE-- <?php Class C { } $rc = new ReflectionClass("C"); $methods = array("getFileName", "getStartLine", "getEndLine"); foreach ($methods as $method) { var_dump($rc->$method()); var_dump($rc->$method(null)); var_dump($rc->$method('X', 0)); } ?> --EXPECTF-- string(%d) "%s" Warning: ReflectionClass::getFileName() expects exactly 0 parameters, 1 given in %s on line %d NULL Warning: ReflectionClass::getFileName() expects exactly 0 parameters, 2 given in %s on line %d NULL int(2) Warning: ReflectionClass::getStartLine() expects exactly 0 parameters, 1 given in %s on line %d NULL Warning: ReflectionClass::getStartLine() expects exactly 0 parameters, 2 given in %s on line %d NULL int(2) Warning: ReflectionClass::getEndLine() expects exactly 0 parameters, 1 given in %s on line %d NULL Warning: ReflectionClass::getEndLine() expects exactly 0 parameters, 2 given in %s on line %d NULLy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`