X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-psr_1.2.0-1.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-psr_1.2.0-1.el8
/
tests
/
??
..
??
PsrCacheCacheException.phpt
(439 B)
??
PsrCacheCacheItemInterface.phpt
(861 B)
??
PsrCacheCacheItemPoolInterface.phpt
(1.45 KB)
??
PsrCacheInvalidArgumentException.phpt
(591 B)
??
PsrContainerContainerExceptionInterface.phpt
(502 B)
??
PsrContainerContainerInterface.phpt
(348 B)
??
PsrContainerNotFoundExceptionInterface.phpt
(609 B)
??
PsrEventDispatcherEventDispatcherInterface.phpt
(741 B)
??
PsrEventDispatcherListenerProviderInterface.phpt
(770 B)
??
PsrEventDispatcherStoppableEventInterface.phpt
(697 B)
??
PsrHttpClientClientExceptionInterface.phpt
(626 B)
??
PsrHttpClientClientInterface.phpt
(769 B)
??
PsrHttpClientNetworkExceptionInterface.phpt
(1.15 KB)
??
PsrHttpClientRequestExceptionInterface.phpt
(1.15 KB)
??
PsrHttpMessageMessageInterface.phpt
(1.55 KB)
??
PsrHttpMessageRequestFactoryInterface.phpt
(980 B)
??
PsrHttpMessageRequestInterface.phpt
(1.38 KB)
??
PsrHttpMessageResponseFactoryInterface.phpt
(892 B)
??
PsrHttpMessageResponseInterface.phpt
(1.01 KB)
??
PsrHttpMessageServerRequestFactoryInterface.phpt
(1.17 KB)
??
PsrHttpMessageServerRequestInterface.phpt
(2.51 KB)
??
PsrHttpMessageStreamFactoryInterface.phpt
(1.36 KB)
??
PsrHttpMessageStreamInterface.phpt
(1.22 KB)
??
PsrHttpMessageUploadedFileFactoryInterface.phpt
(1.1 KB)
??
PsrHttpMessageUploadedFileInterface.phpt
(954 B)
??
PsrHttpMessageUriFactoryInterface.phpt
(756 B)
??
PsrHttpMessageUriInterface.phpt
(1.33 KB)
??
PsrHttpServerMiddlewareInterface.phpt
(1.06 KB)
??
PsrHttpServerRequestHandlerInterface.phpt
(926 B)
??
PsrLinkEvolvableLinkInterface.phpt
(722 B)
??
PsrLinkEvolvableLinkProviderInterface.phpt
(617 B)
??
PsrLinkLinkInterface.phpt
(382 B)
??
PsrLinkLinkProviderInterface.phpt
(349 B)
??
PsrLogAbstractLogger.phpt
(1.25 KB)
??
PsrLogAbstractLogger_construct.phpt
(341 B)
??
PsrLogInvalidArgumentException.phpt
(415 B)
??
PsrLogLevel.phpt
(493 B)
??
PsrLogLoggerAwareInterface.phpt
(629 B)
??
PsrLogLoggerAwareTrait.phpt
(588 B)
??
PsrLogLoggerInterface.phpt
(1.46 KB)
??
PsrLogLoggerTrait.phpt
(1.56 KB)
??
PsrLogNullLogger.phpt
(683 B)
??
PsrSimpleCacheCacheException.phpt
(441 B)
??
PsrSimpleCacheCacheInterface.phpt
(623 B)
??
PsrSimpleCacheInvalidArgumentException.phpt
(491 B)
??
SampleCacheItem.inc
(581 B)
??
SampleCacheItemPool.inc
(946 B)
??
SampleClient.inc
(342 B)
??
SampleEventDispatcher.inc
(255 B)
??
SampleListenerProvider.inc
(295 B)
??
SampleLogger.inc
(1.28 KB)
??
SampleLogger2.inc
(221 B)
??
SampleLoggerAware.inc
(377 B)
??
SampleMessage.inc
(1.12 KB)
??
SampleMiddleware.inc
(432 B)
??
SampleRequest.inc
(724 B)
??
SampleRequestFactory.inc
(327 B)
??
SampleRequestHandler.inc
(364 B)
??
SampleResponse.inc
(408 B)
??
SampleResponseFactory.inc
(363 B)
??
SampleServerRequest.inc
(1.33 KB)
??
SampleServerRequestFactory.inc
(410 B)
??
SampleStoppableEvent.inc
(236 B)
??
SampleStream.inc
(1.28 KB)
??
SampleStreamFactory.inc
(669 B)
??
SampleUploadedFile.inc
(599 B)
??
SampleUploadedFileFactory.inc
(603 B)
??
SampleUri.inc
(1.41 KB)
??
SampleUriFactory.inc
(286 B)
??
gh78_php7.phpt
(649 B)
??
gh78_php8.phpt
(562 B)
??
phpinfo.phpt
(584 B)
??
phpinfo_lt_php72.phpt
(621 B)
??
skip.inc
(89 B)
??
skip_lt_php72.inc
(107 B)
Editing: PsrHttpMessageServerRequestInterface.phpt
--TEST-- Psr\Http\Message\ServerRequestInterface --SKIPIF-- <?php include('skip.inc'); ?> --FILE-- <?php include __DIR__ . '/SampleMessage.inc'; include __DIR__ . '/SampleRequest.inc'; include __DIR__ . '/SampleServerRequest.inc'; var_dump(interface_exists('\\Psr\\Http\\Message\\ServerRequestInterface', false)); var_dump(is_subclass_of('\\Psr\\Http\\Message\\ServerRequestInterface', '\\Psr\\Http\\Message\\MessageInterface')); var_dump(is_subclass_of('\\Psr\\Http\\Message\\ServerRequestInterface', '\\Psr\\Http\\Message\\RequestInterface')); $ifaces = class_implements('SampleServerRequest', false); ksort($ifaces); var_dump($ifaces); $request = new SampleServerRequest(); var_dump($request instanceof \Psr\Http\Message\MessageInterface); var_dump($request instanceof \Psr\Http\Message\RequestInterface); $request->getServerParams(); $request->getCookieParams(); $request->withCookieParams(array('a' => 'b')); $request->getQueryParams(); $request->withQueryParams(array('c' => 'd')); $request->getUploadedFiles(); $request->withUploadedFiles(array()); $request->getParsedBody(); $request->withParsedBody('body'); $request->getAttributes(); $request->getAttribute('attr'); $request->getAttribute('attr', 'bar'); $request->withAttribute('foo', 'baz'); $request->withoutAttribute('bar'); --EXPECT-- bool(true) bool(true) bool(true) array(3) { ["PsrExt\Http\Message\MessageInterface"]=> string(36) "PsrExt\Http\Message\MessageInterface" ["PsrExt\Http\Message\RequestInterface"]=> string(36) "PsrExt\Http\Message\RequestInterface" ["PsrExt\Http\Message\ServerRequestInterface"]=> string(42) "PsrExt\Http\Message\ServerRequestInterface" } bool(true) bool(true) string(36) "SampleServerRequest::getServerParams" string(36) "SampleServerRequest::getCookieParams" string(37) "SampleServerRequest::withCookieParams" array(1) { ["a"]=> string(1) "b" } string(35) "SampleServerRequest::getQueryParams" string(36) "SampleServerRequest::withQueryParams" array(1) { ["c"]=> string(1) "d" } string(37) "SampleServerRequest::getUploadedFiles" string(38) "SampleServerRequest::withUploadedFiles" array(0) { } string(34) "SampleServerRequest::getParsedBody" string(35) "SampleServerRequest::withParsedBody" string(4) "body" string(34) "SampleServerRequest::getAttributes" string(33) "SampleServerRequest::getAttribute" string(4) "attr" NULL string(33) "SampleServerRequest::getAttribute" string(4) "attr" string(3) "bar" string(34) "SampleServerRequest::withAttribute" string(3) "foo" string(3) "baz" string(37) "SampleServerRequest::withoutAttribute" string(3) "bar"
Upload File
Create Folder