1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/Zend/tests/throwable_003.phpt
Aaron Piotrowski 103bf7eda0 Add Throwable tests
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