summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionObject_getName_error1.phpt
blob: c846e274229af2f977c3275bda2bcabd48772c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
ReflectionObject::getName - forbid static invocation
--FILE--
<?php
ReflectionObject::getName();
?> 
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'Non-static method ReflectionClass::getName() cannot be called statically' in %s:2
Stack trace:
#0 {main}
  thrown in %s on line 2