📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 11:48:48
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php80-pecl-psr_1.2.0-1.el8
/
tests
📍 /opt/alt/tests/alt-php80-pecl-psr_1.2.0-1.el8/tests
🔄 Refresh
✏️
Editing: PsrEventDispatcherEventDispatcherInterface.phpt
Read Only
--TEST-- Psr\EventDispatcher\EventDispatcherInterface --SKIPIF-- <?php include('skip_lt_php72.inc'); ?> --FILE-- <?php include __DIR__ . '/SampleEventDispatcher.inc'; var_dump(interface_exists('\\Psr\\EventDispatcher\\EventDispatcherInterface', false)); var_dump(class_implements('SampleEventDispatcher', false)); $dispatcher = new SampleEventDispatcher(); var_dump($dispatcher instanceof SampleEventDispatcher); $event = new stdClass(); $return = $dispatcher->dispatch($event); var_dump(is_object($return)); --EXPECT-- bool(true) array(1) { ["PsrExt\EventDispatcher\EventDispatcherInterface"]=> string(47) "PsrExt\EventDispatcher\EventDispatcherInterface" } bool(true) string(31) "SampleEventDispatcher::dispatch" bool(true) bool(true)
💾 Save Changes
❌ Cancel