1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionClass_getName_error1.phpt
2015-05-17 17:31:43 -05:00

12 lines
277 B
PHP

--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