// SYSTEM PANEL //
[ROOT]
/
opt
/
alt
/
tests
/
alt-php84-pecl-psr_1.2.0-1.el8
/
tests
[ PARENT ]
EDIT :: PsrContainerContainerExceptionInterface.phpt
--TEST-- Psr\Container\ContainerExceptionInterface --SKIPIF-- <?php include('skip.inc'); ?> --FILE-- <?php use Psr\Container\ContainerExceptionInterface; class MyException extends Exception implements ContainerExceptionInterface {} $ex = new MyException('test'); var_dump($ex instanceof ContainerExceptionInterface); var_dump($ex instanceof Exception); try { throw $ex; } catch( ContainerExceptionInterface $e ) { var_dump($e->getMessage()); } --EXPECT-- bool(true) bool(true) string(4) "test"
SAVE
CANCEL