get_called_class_001.phpt 199 B

1234567891011
  1. --TEST--
  2. Calling get_called_class() outside a class
  3. --FILE--
  4. <?php
  5. var_dump(get_called_class());
  6. ?>
  7. --EXPECTF--
  8. Warning: get_called_class() called from outside a class in %s on line %d
  9. bool(false)