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

12 lines
277 B
Plaintext
Raw Normal View History

2007-07-11 20:16:43 +00:00
--TEST--
ReflectionClass::getName - forbid static invocation
--FILE--
<?php
ReflectionClass::getName();
?>
--EXPECTF--
Fatal error: Uncaught Error: Non-static method ReflectionClass::getName() cannot be called statically in %s:2
Stack trace:
#0 {main}
thrown in %s on line 2