exception_005.phpt 176 B

123456789101112
  1. --TEST--
  2. Trying to throw exception of an interface
  3. --FILE--
  4. <?php
  5. interface a { }
  6. throw new a();
  7. ?>
  8. --EXPECTF--
  9. Fatal error: Cannot instantiate interface a in %s on line %d