php-src/Zend/tests/throwable_003.phpt
2015-06-15 01:47:34 -05:00

12 lines
302 B
PHP

--TEST--
Test user code implementing Throwable results in fatal error
--CREDITS--
Aaron Piotrowski <aaron@icicle.io>
--FILE--
<?php
class Failure implements Throwable {}
?>
--EXPECTF--
Fatal error: Class Failure cannot implement interface Throwable, extend Exception or Error instead in %s on line %d