php-src/ext/reflection/tests/ReflectionObject_getName_error1.phpt

9 lines
224 B
PHP

--TEST--
ReflectionObject::getName - forbid static invocation
--FILE--
<?php
ReflectionObject::getName();
?>
--EXPECTF--
Fatal error: Non-static method ReflectionClass::getName() cannot be called statically in %s on line 2