PATH:
opt
/
alt
/
tests
/
alt-php83-pecl-psr_1.2.0-1.el8
/
tests
--TEST-- Psr\Http\Message\MessageInterface --SKIPIF-- <?php include('skip.inc'); ?> --FILE-- <?php include __DIR__ . '/SampleMessage.inc'; include __DIR__ . '/SampleStream.inc'; var_dump(interface_exists('\\Psr\\Http\\Message\\MessageInterface', false)); var_dump(class_implements('SampleMessage', false)); $message = new SampleMessage(); $message->getProtocolVersion(); $message->withProtocolVersion('1.0'); $message->getHeaders(); $message->hasHeader('content-type'); $message->getHeader('content-type'); $message->getHeaderLine('content-type'); $message->withHeader('content-type', 'text/plain'); $message->withAddedHeader('content-type', 'text/html'); $message->withoutHeader('content-type'); $message->getBody(); $message->withBody(new SampleStream()); --EXPECTF-- bool(true) array(1) { ["PsrExt\Http\Message\MessageInterface"]=> string(36) "PsrExt\Http\Message\MessageInterface" } string(33) "SampleMessage::getProtocolVersion" string(34) "SampleMessage::withProtocolVersion" string(3) "1.0" string(25) "SampleMessage::getHeaders" string(24) "SampleMessage::hasHeader" string(12) "content-type" string(24) "SampleMessage::getHeader" string(12) "content-type" string(28) "SampleMessage::getHeaderLine" string(12) "content-type" string(25) "SampleMessage::withHeader" string(12) "content-type" string(10) "text/plain" string(30) "SampleMessage::withAddedHeader" string(12) "content-type" string(9) "text/html" string(28) "SampleMessage::withoutHeader" string(12) "content-type" string(22) "SampleMessage::getBody" string(23) "SampleMessage::withBody" object(SampleStream)#%d (0) { }
[-] PsrLogLevel.phpt
[edit]
[-] phpinfo.phpt
[edit]
[-] SampleStreamFactory.inc
[edit]
[-] PsrCacheInvalidArgumentException.phpt
[edit]
[-] SampleUriFactory.inc
[edit]
[-] SampleServerRequestFactory.inc
[edit]
[-] PsrEventDispatcherStoppableEventInterface.phpt
[edit]
[-] PsrHttpClientRequestExceptionInterface.phpt
[edit]
[-] PsrHttpMessageUriInterface.phpt
[edit]
[-] skip.inc
[edit]
[-] PsrHttpMessageRequestFactoryInterface.phpt
[edit]
[-] PsrLogLoggerInterface.phpt
[edit]
[-] PsrSimpleCacheInvalidArgumentException.phpt
[edit]
[-] SampleUploadedFileFactory.inc
[edit]
[-] SampleUploadedFile.inc
[edit]
[-] SampleRequest.inc
[edit]
[-] PsrSimpleCacheCacheInterface.phpt
[edit]
[-] PsrHttpMessageResponseInterface.phpt
[edit]
[-] gh78_php7.phpt
[edit]
[-] PsrHttpMessageServerRequestInterface.phpt
[edit]
[-] PsrLogLoggerAwareInterface.phpt
[edit]
[-] SampleStream.inc
[edit]
[-] PsrEventDispatcherListenerProviderInterface.phpt
[edit]
[-] PsrHttpMessageServerRequestFactoryInterface.phpt
[edit]
[-] PsrCacheCacheItemPoolInterface.phpt
[edit]
[-] PsrLogLoggerTrait.phpt
[edit]
[-] PsrHttpMessageUploadedFileInterface.phpt
[edit]
[-] PsrHttpMessageStreamInterface.phpt
[edit]
[-] SampleUri.inc
[edit]
[-] gh78_php8.phpt
[edit]
[-] phpinfo_lt_php72.phpt
[edit]
[-] PsrLogLoggerAwareTrait.phpt
[edit]
[-] PsrCacheCacheException.phpt
[edit]
[-] SampleResponseFactory.inc
[edit]
[-] PsrLinkEvolvableLinkInterface.phpt
[edit]
[-] SampleLogger.inc
[edit]
[-] PsrHttpMessageUploadedFileFactoryInterface.phpt
[edit]
[-] PsrLinkEvolvableLinkProviderInterface.phpt
[edit]
[-] SampleLoggerAware.inc
[edit]
[-] PsrHttpMessageRequestInterface.phpt
[edit]
[-] PsrContainerContainerInterface.phpt
[edit]
[-] PsrHttpMessageMessageInterface.phpt
[edit]
[-] SampleRequestFactory.inc
[edit]
[-] PsrContainerContainerExceptionInterface.phpt
[edit]
[+]
..
[-] SampleMiddleware.inc
[edit]
[-] PsrContainerNotFoundExceptionInterface.phpt
[edit]
[-] PsrHttpClientClientInterface.phpt
[edit]
[-] PsrLinkLinkProviderInterface.phpt
[edit]
[-] skip_lt_php72.inc
[edit]
[-] PsrHttpMessageUriFactoryInterface.phpt
[edit]
[-] PsrLinkLinkInterface.phpt
[edit]
[-] SampleCacheItemPool.inc
[edit]
[-] SampleRequestHandler.inc
[edit]
[-] SampleStoppableEvent.inc
[edit]
[-] SampleCacheItem.inc
[edit]
[-] PsrEventDispatcherEventDispatcherInterface.phpt
[edit]
[-] PsrHttpClientClientExceptionInterface.phpt
[edit]
[-] SampleListenerProvider.inc
[edit]
[-] PsrSimpleCacheCacheException.phpt
[edit]
[-] PsrHttpServerMiddlewareInterface.phpt
[edit]
[-] SampleServerRequest.inc
[edit]
[-] SampleResponse.inc
[edit]
[-] PsrCacheCacheItemInterface.phpt
[edit]
[-] PsrHttpServerRequestHandlerInterface.phpt
[edit]
[-] PsrLogAbstractLogger_construct.phpt
[edit]
[-] PsrLogNullLogger.phpt
[edit]
[-] PsrHttpClientNetworkExceptionInterface.phpt
[edit]
[-] PsrHttpMessageStreamFactoryInterface.phpt
[edit]
[-] SampleClient.inc
[edit]
[-] SampleMessage.inc
[edit]
[-] PsrHttpMessageResponseFactoryInterface.phpt
[edit]
[-] SampleEventDispatcher.inc
[edit]
[-] PsrLogInvalidArgumentException.phpt
[edit]
[-] SampleLogger2.inc
[edit]
[-] PsrLogAbstractLogger.phpt
[edit]