📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 10:35:48
📂
/
/
opt
/
alt
/
tests
/
alt-php80-pecl-psr_1.2.0-1.el8
/
tests
✏️
Editing: PsrHttpMessageResponseFactoryInterface.phpt
--TEST-- Psr\Http\Message\ResponseFactoryInterface --SKIPIF-- <?php include('skip.inc'); ?> --FILE-- <?php include __DIR__ . '/SampleMessage.inc'; include __DIR__ . '/SampleResponse.inc'; include __DIR__ . '/SampleResponseFactory.inc'; var_dump(interface_exists('\\Psr\\Http\\Message\\ResponseFactoryInterface', false)); var_dump(class_implements('SampleResponseFactory', false)); $factory = new SampleResponseFactory(); $response = $factory->createResponse(); var_dump($response instanceof \Psr\Http\Message\ResponseInterface); $factory->createResponse(400, 'BAD REQUEST'); --EXPECT-- bool(true) array(1) { ["PsrExt\Http\Message\ResponseFactoryInterface"]=> string(44) "PsrExt\Http\Message\ResponseFactoryInterface" } string(37) "SampleResponseFactory::createResponse" int(200) string(0) "" bool(true) string(37) "SampleResponseFactory::createResponse" int(400) string(11) "BAD REQUEST"
💾 Save Changes
❌ Cancel