ReflectionObject_getName_error1.phpt 224 B

12345678
  1. --TEST--
  2. ReflectionObject::getName - forbid static invocation
  3. --FILE--
  4. <?php
  5. ReflectionObject::getName();
  6. ?>
  7. --EXPECTF--
  8. Fatal error: Non-static method ReflectionClass::getName() cannot be called statically in %s on line 2