php-src/sapi/phpdbg/tests/set_exception_handler.phpt
Christoph M. Becker 57463cf78b Drop all JIT related XFAILS from phpdbg test suite
phpdbg now disables JIT, so these cause XFAIL warnings.
2020-11-30 15:24:15 +01:00

19 lines
343 B
PHP

--TEST--
set_exception_handler() in phpdbg
--PHPDBG--
r
c
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Uncaught Exception in %s on line 4: test]
>00004: throw new Exception("test");
00005:
prompt> EX
[Script ended normally]
prompt>
--FILE--
<?php
set_exception_handler(function () { print "EX\n"; });
throw new Exception("test");