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