xref: /PHP-7.4/Zend/tests/throwable_003.phpt (revision d679f022)
1--TEST--
2Test user code implementing Throwable results in fatal error
3--CREDITS--
4Aaron Piotrowski <aaron@icicle.io>
5--FILE--
6<?php
7class Failure implements Throwable {}
8?>
9--EXPECTF--
10Fatal error: Class Failure cannot implement interface Throwable, extend Exception or Error instead in %s on line %d
11