summaryrefslogtreecommitdiff
path: root/Zend/tests/throwable_003.phpt
blob: 3e65027c79803b9d0b07f1a82508ccc4bd5eb72b (plain)
1
2
3
4
5
6
7
8
9
10
--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