Skip to content

Latest commit

 

History

History
478 lines (458 loc) · 43 KB

README.md

File metadata and controls

478 lines (458 loc) · 43 KB

Psr Phpunit Assertions Docs

AssertionsTrait

<?php
trait AssertionsTrait {
    public static function assertImplementsDateTimeImmutable(mixed $actual): void;
    public static function assertCacheItemPoolInterfaceGetKey(Psr\Cache\CacheItemPoolInterface $cacheItemPool, mixed $value): void;
    public static function assertCacheItemPoolInterfaceIsHit(Psr\Cache\CacheItemPoolInterface $cacheItemPool, mixed $value): void;
    public static function assertImplementsCacheException(mixed $actual): void;
    public static function assertImplementsCacheInvalidArgumentException(mixed $actual): void;
    public static function assertImplementsCacheItemInterface(mixed $actual): void;
    public static function assertImplementsCacheItemPoolInterface(mixed $actual): void;
    public static function assertClockMatchesDate(Psr\Clock\ClockInterface $clock, mixed $actual): void;
    public static function assertClockMatchesDateTimeImmutable(mixed $clock, mixed $actual): void;
    public static function assertClockMatchesSystemTimezone(mixed $actual): void;
    public static function assertClockMatchesTimezone(mixed $clock, string $timezone): void;
    public static function assertImplementsClockInterface(mixed $actual): void;
    public static function assertContainerGet(Psr\Container\ContainerInterface $container, string $id, mixed $value): void;
    public static function assertContainerGetThrows(Psr\Container\ContainerInterface $container, string $id, array $throwables): void;
    public static function assertContainerGetThrowsContainerExceptionInterface(Psr\Container\ContainerInterface $container, string $id): void;
    public static function assertContainerGetThrowsNotFoundExceptionInterface(Psr\Container\ContainerInterface $container, string $id): void;
    public static function assertContainerHas(Psr\Container\ContainerInterface $container, string $id): void;
    public static function assertImplementsContainerExceptionInterface(mixed $actual): void;
    public static function assertImplementsContainerInterface(mixed $actual): void;
    public static function assertImplementsNotFoundExceptionInterface(mixed $actual): void;
    public static function assertNotContainerGet(Psr\Container\ContainerInterface $container, string $id, mixed $value): void;
    public static function assertNotContainerHas(Psr\Container\ContainerInterface $container, string $id): void;
    public static function assertImplementsEventDispatcherInterface(mixed $actual): void;
    public static function assertImplementsListenerProviderInterface(mixed $actual): void;
    public static function assertImplementsStoppableEventInterface(mixed $actual): void;
    public static function assertHasHeader(mixed $message, string $header): void;
    public static function assertHasRequestHeader(mixed $request, string $header): void;
    public static function assertHasResponseHeader(mixed $response, string $header): void;
    public static function assertHasServerRequestHeader(mixed $serveRequest, string $header): void;
    public static function assertHeaderContains(mixed $message, string $header): void;
    public static function assertHeaderMatches(mixed $message, string $header): void;
    public static function assertHeaderMissing(mixed $request, string $method, string $uri): void;
    public static function assertImplementsClientExceptionInterface(mixed $value): void;
    public static function assertImplementsClientInterface(mixed $value): void;
    public static function assertImplementsMessageInterface(mixed $actual): void;
    public static function assertImplementsMiddlewareInterface(mixed $actual): void;
    public static function assertImplementsNetworkExceptionInterface(mixed $value): void;
    public static function assertImplementsRequestExceptionInterface(mixed $value): void;
    public static function assertImplementsRequestFactoryInterface(mixed $actual): void;
    public static function assertImplementsRequestHandlerInterface(mixed $actual): void;
    public static function assertImplementsRequestInterface(mixed $actual): void;
    public static function assertImplementsResponseFactoryInterface(mixed $actual): void;
    public static function assertImplementsResponseInterface(mixed $actual): void;
    public static function assertImplementsServerRequestFactoryInterface(mixed $actual): void;
    public static function assertImplementsServerRequestInterface(mixed $actual): void;
    public static function assertImplementsStreamFactoryInterface(mixed $actual): void;
    public static function assertImplementsStreamInterface(mixed $actual): void;
    public static function assertImplementsUploadedFileFactoryInterface(mixed $actual): void;
    public static function assertImplementsUploadedFileInterface(mixed $actual): void;
    public static function assertImplementsUriFactoryInterface(mixed $actual): void;
    public static function assertImplementsUriInterface(mixed $actual): void;
    public static function assertMessageBodyMatchesJson(Psr\Http\Message\MessageInterface $message, array $jsonAssertions): void;
    public static function assertMessageContains(mixed $message, string $header): void;
    public static function assertMessageHasHeaders(Psr\Http\Message\MessageInterface $message, array $expectedHeaders): void;
    public static function assertNotResponseHasHeader(Psr\Http\Message\ResponseInterface $response, string $name): void;
    public static function assertNotResponseHeader(Psr\Http\Message\ResponseInterface $response, string $name, array $expected): void;
    public static function assertNotResponseHeaders(Psr\Http\Message\ResponseInterface $response, array $expected): void;
    public static function assertNotResponseReasonPhrase(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertNotResponseStatusCode(Psr\Http\Message\ResponseInterface $response, int $expected): void;
    public static function assertNotServerRequestMethod(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertNotServerRequestParsedBody(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertNotServerRequestProtocolVersion(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertNotServerRequestQueryParams(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertNotServerRequestRequestTarget(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertNotServerRequestUploadedFiles(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertNotServerRequestUriPath(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertRequestBodyIsJson(): void;
    public static function assertRequestContains(mixed $request, string $header): void;
    public static function assertRequestHasMethod(Psr\Http\Message\RequestInterface $request, string $expected): void;
    public static function assertRequestHasPostMethod(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestHasUri(Psr\Http\Message\RequestInterface $request, Psr\Http\Message\UriInterface $uri): void;
    public static function assertRequestHasUriString(Psr\Http\Message\RequestInterface $request, string $expected): void;
    public static function assertRequestHeaderContains(mixed $request, string $header): void;
    public static function assertRequestHeaderMatches(mixed $request, string $header): void;
    public static function assertRequestJsonBodyContains(mixed $request, string $method, string $uri): void;
    public static function assertRequestMethod(string $method, Psr\Http\Message\RequestInterface $response): void;
    public static function assertRequestMethodConnect(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodDelete(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodGet(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodHead(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodOptions(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPatch(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPost(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPurge(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPut(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodTrace(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestUrl(): void;
    public static function assertResponseBody(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseBodyContains(mixed $request): void;
    public static function assertResponseBodyContainsString(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseBodyMatchesRegularExpression(string $pattern, Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseBodyNotContainsString(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseBodyValidJson(Psr\Http\Message\MessageInterface $message, array $expectedHeaders): void;
    public static function assertResponseContains(mixed $response, string $needle): void;
    public static function assertResponseHasHeader(Psr\Http\Message\ResponseInterface $response, string $header): void;
    public static function assertResponseHeader(Psr\Http\Message\ResponseInterface $response, string $name, array $expected): void;
    public static function assertResponseHeaderContains(mixed $response, string $header): void;
    public static function assertResponseHeaderMatches(mixed $response, string $header): void;
    public static function assertResponseHeaders(Psr\Http\Message\ResponseInterface $response, array $expected): void;
    public static function assertResponseJsonBodyContains(mixed $request, string $method, string $uri): void;
    public static function assertResponseOk(mixed $request, string $method, string $uri): void;
    public static function assertResponseReasonPhrase(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseStatusAccepted(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusAlreadyReported(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusBadGateway(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusBadRequest(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusCode(Psr\Http\Message\ResponseInterface $response, int $code): void;
    public static function assertResponseStatusConflict(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusContinue(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusCreated(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusEarlyHints(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusExpectationFailed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusFailedDependency(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusForbidden(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusFound(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusGatewayTimeout(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusGone(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusImATeapot(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusImUsed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusInsufficientStorage(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusInternalServerError(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusLengthRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusLocked(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusLoopDetected(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMethodNotAllowed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMisdirectedRequest(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMovedPermanently(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMultiStatus(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMultipleChoices(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNetworkAuthenticationRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNoContent(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNonAuthoritativeInformation(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotAcceptable(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotExtended(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotFound(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotImplemented(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotModified(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusOk(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPartialContent(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPayloadTooLarge(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPaymentRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPermanentRedirect(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPreconditionFailed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPreconditionRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusProcessing(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusProxyAuthenticationRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusRangeNotSatisfiable(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusRequestHeaderFieldsTooLarge(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusRequestTimeout(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusReserved(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusResetContent(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusSeeOther(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusServiceUnavailable(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusSwitchingProtocols(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusTemporaryRedirect(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusTooEarly(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusTooManyRequests(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnauthorized(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnavailableForLegalReasons(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnprocessableEntity(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnsupportedMediaType(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUpgradeRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUriTooLong(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUseProxy(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusVariantAlsoNegotiates(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusVersionNotSupported(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertServerRequest(mixed $request, string $method, string $uri): void;
    public static function assertServerRequestAttributes(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestBody(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestContains(mixed $serveRequest, string $header): void;
    public static function assertServerRequestCookieParams(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestHasHeader(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestHasUri(Psr\Http\Message\ServerRequestInterface $request, mixed $expected): void;
    public static function assertServerRequestHeader(Psr\Http\Message\ServerRequestInterface $request, string $name, array $expected): void;
    public static function assertServerRequestHeaderContains(mixed $serveRequest, string $header): void;
    public static function assertServerRequestHeaderMatches(mixed $serveRequest, string $header): void;
    public static function assertServerRequestHeaders(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestJsonBodyContains(mixed $request, string $method, string $uri): void;
    public static function assertServerRequestMethod(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestParsedBody(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestProtocolVersion(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestQueryParams(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestRequestTarget(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestUploadedFiles(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestUriPath(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertImplementsEvolvableLinkInterface(mixed $actual): void;
    public static function assertImplementsEvolvableLinkProviderInterface(mixed $actual): void;
    public static function assertImplementsLinkInterface(mixed $actual): void;
    public static function assertImplementsLinkProviderInterface(mixed $actual): void;
    public static function assertExtendsAbstractLogger(mixed $actual): void;
    public static function assertExtendsInvalidArgumentException(mixed $actual): void;
    public static function assertImplementsLoggerAwareInterface(mixed $actual): void;
    public static function assertImplementsLoggerInterface(mixed $actual): void;
    public static function assertPsrLoggerWrites(mixed $client, string $level): void;
    public static function assertUsesLoggerAwareTrait(mixed $actual): void;
    public static function assertUsesLoggerTrait(mixed $actual): void;
    public static function assertImplementsCacheInterface(mixed $actual): void;
    public static function assertImplementsInvalidArgumentException(mixed $actual): void;
    public static function assertImplementsSimpleCacheException(mixed $actual): void;
    public static function assertInstanceOfSimpleCacheCacheException(mixed $actual): void;
    public static function assertInstanceOfSimpleCacheInterface(mixed $actual): void;
    public static function assertInstanceOfSimpleCacheInvalidArgumentException(mixed $actual): void;
}

CacheTrait

<?php
trait CacheTrait {
    public static function assertCacheItemPoolInterfaceGetKey(Psr\Cache\CacheItemPoolInterface $cacheItemPool, mixed $value): void;
    public static function assertCacheItemPoolInterfaceIsHit(Psr\Cache\CacheItemPoolInterface $cacheItemPool, mixed $value): void;
    public static function assertImplementsCacheException(mixed $actual): void;
    public static function assertImplementsCacheInvalidArgumentException(mixed $actual): void;
    public static function assertImplementsCacheItemInterface(mixed $actual): void;
    public static function assertImplementsCacheItemPoolInterface(mixed $actual): void;
}

ClockTrait

<?php
trait ClockTrait {
    public static function assertClockMatchesDate(Psr\Clock\ClockInterface $clock, mixed $actual): void;
    public static function assertClockMatchesDateTimeImmutable(mixed $clock, mixed $actual): void;
    public static function assertClockMatchesSystemTimezone(mixed $actual): void;
    public static function assertClockMatchesTimezone(mixed $clock, string $timezone): void;
    public static function assertImplementsClockInterface(mixed $actual): void;
}

ContainerTrait

<?php
trait ContainerTrait {
    public static function assertContainerGet(Psr\Container\ContainerInterface $container, string $id, mixed $value): void;
    public static function assertContainerGetThrows(Psr\Container\ContainerInterface $container, string $id, array $throwables): void;
    public static function assertContainerGetThrowsContainerExceptionInterface(Psr\Container\ContainerInterface $container, string $id): void;
    public static function assertContainerGetThrowsNotFoundExceptionInterface(Psr\Container\ContainerInterface $container, string $id): void;
    public static function assertContainerHas(Psr\Container\ContainerInterface $container, string $id): void;
    public static function assertImplementsContainerExceptionInterface(mixed $actual): void;
    public static function assertImplementsContainerInterface(mixed $actual): void;
    public static function assertImplementsNotFoundExceptionInterface(mixed $actual): void;
    public static function assertNotContainerGet(Psr\Container\ContainerInterface $container, string $id, mixed $value): void;
    public static function assertNotContainerHas(Psr\Container\ContainerInterface $container, string $id): void;
}

EventDispatcherTrait

<?php
trait EventDispatcherTrait {
    public static function assertImplementsEventDispatcherInterface(mixed $actual): void;
    public static function assertImplementsListenerProviderInterface(mixed $actual): void;
    public static function assertImplementsStoppableEventInterface(mixed $actual): void;
}

HttpTrait

<?php
trait HttpTrait {
    public static function assertHasHeader(mixed $message, string $header): void;
    public static function assertHasRequestHeader(mixed $request, string $header): void;
    public static function assertHasResponseHeader(mixed $response, string $header): void;
    public static function assertHasServerRequestHeader(mixed $serveRequest, string $header): void;
    public static function assertHeaderContains(mixed $message, string $header): void;
    public static function assertHeaderMatches(mixed $message, string $header): void;
    public static function assertHeaderMissing(mixed $request, string $method, string $uri): void;
    public static function assertImplementsClientExceptionInterface(mixed $value): void;
    public static function assertImplementsClientInterface(mixed $value): void;
    public static function assertImplementsMessageInterface(mixed $actual): void;
    public static function assertImplementsMiddlewareInterface(mixed $actual): void;
    public static function assertImplementsNetworkExceptionInterface(mixed $value): void;
    public static function assertImplementsRequestExceptionInterface(mixed $value): void;
    public static function assertImplementsRequestFactoryInterface(mixed $actual): void;
    public static function assertImplementsRequestHandlerInterface(mixed $actual): void;
    public static function assertImplementsRequestInterface(mixed $actual): void;
    public static function assertImplementsResponseFactoryInterface(mixed $actual): void;
    public static function assertImplementsResponseInterface(mixed $actual): void;
    public static function assertImplementsServerRequestFactoryInterface(mixed $actual): void;
    public static function assertImplementsServerRequestInterface(mixed $actual): void;
    public static function assertImplementsStreamFactoryInterface(mixed $actual): void;
    public static function assertImplementsStreamInterface(mixed $actual): void;
    public static function assertImplementsUploadedFileFactoryInterface(mixed $actual): void;
    public static function assertImplementsUploadedFileInterface(mixed $actual): void;
    public static function assertImplementsUriFactoryInterface(mixed $actual): void;
    public static function assertImplementsUriInterface(mixed $actual): void;
    public static function assertMessageBodyMatchesJson(Psr\Http\Message\MessageInterface $message, array $jsonAssertions): void;
    public static function assertMessageContains(mixed $message, string $header): void;
    public static function assertMessageHasHeaders(Psr\Http\Message\MessageInterface $message, array $expectedHeaders): void;
    public static function assertNotResponseHasHeader(Psr\Http\Message\ResponseInterface $response, string $name): void;
    public static function assertNotResponseHeader(Psr\Http\Message\ResponseInterface $response, string $name, array $expected): void;
    public static function assertNotResponseHeaders(Psr\Http\Message\ResponseInterface $response, array $expected): void;
    public static function assertNotResponseReasonPhrase(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertNotResponseStatusCode(Psr\Http\Message\ResponseInterface $response, int $expected): void;
    public static function assertNotServerRequestMethod(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertNotServerRequestParsedBody(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertNotServerRequestProtocolVersion(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertNotServerRequestQueryParams(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertNotServerRequestRequestTarget(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertNotServerRequestUploadedFiles(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertNotServerRequestUriPath(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertRequestBodyIsJson(): void;
    public static function assertRequestContains(mixed $request, string $header): void;
    public static function assertRequestHasMethod(Psr\Http\Message\RequestInterface $request, string $expected): void;
    public static function assertRequestHasPostMethod(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestHasUri(Psr\Http\Message\RequestInterface $request, Psr\Http\Message\UriInterface $uri): void;
    public static function assertRequestHasUriString(Psr\Http\Message\RequestInterface $request, string $expected): void;
    public static function assertRequestHeaderContains(mixed $request, string $header): void;
    public static function assertRequestHeaderMatches(mixed $request, string $header): void;
    public static function assertRequestJsonBodyContains(mixed $request, string $method, string $uri): void;
    public static function assertRequestMethod(string $method, Psr\Http\Message\RequestInterface $response): void;
    public static function assertRequestMethodConnect(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodDelete(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodGet(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodHead(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodOptions(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPatch(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPost(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPurge(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodPut(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestMethodTrace(Psr\Http\Message\RequestInterface $request): void;
    public static function assertRequestUrl(): void;
    public static function assertResponseBody(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseBodyContains(mixed $request): void;
    public static function assertResponseBodyContainsString(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseBodyMatchesRegularExpression(string $pattern, Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseBodyNotContainsString(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseBodyValidJson(Psr\Http\Message\MessageInterface $message, array $expectedHeaders): void;
    public static function assertResponseContains(mixed $response, string $needle): void;
    public static function assertResponseHasHeader(Psr\Http\Message\ResponseInterface $response, string $header): void;
    public static function assertResponseHeader(Psr\Http\Message\ResponseInterface $response, string $name, array $expected): void;
    public static function assertResponseHeaderContains(mixed $response, string $header): void;
    public static function assertResponseHeaderMatches(mixed $response, string $header): void;
    public static function assertResponseHeaders(Psr\Http\Message\ResponseInterface $response, array $expected): void;
    public static function assertResponseJsonBodyContains(mixed $request, string $method, string $uri): void;
    public static function assertResponseOk(mixed $request, string $method, string $uri): void;
    public static function assertResponseReasonPhrase(Psr\Http\Message\ResponseInterface $response, string $expected): void;
    public static function assertResponseStatusAccepted(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusAlreadyReported(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusBadGateway(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusBadRequest(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusCode(Psr\Http\Message\ResponseInterface $response, int $code): void;
    public static function assertResponseStatusConflict(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusContinue(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusCreated(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusEarlyHints(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusExpectationFailed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusFailedDependency(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusForbidden(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusFound(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusGatewayTimeout(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusGone(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusImATeapot(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusImUsed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusInsufficientStorage(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusInternalServerError(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusLengthRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusLocked(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusLoopDetected(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMethodNotAllowed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMisdirectedRequest(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMovedPermanently(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMultiStatus(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusMultipleChoices(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNetworkAuthenticationRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNoContent(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNonAuthoritativeInformation(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotAcceptable(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotExtended(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotFound(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotImplemented(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusNotModified(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusOk(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPartialContent(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPayloadTooLarge(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPaymentRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPermanentRedirect(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPreconditionFailed(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusPreconditionRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusProcessing(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusProxyAuthenticationRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusRangeNotSatisfiable(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusRequestHeaderFieldsTooLarge(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusRequestTimeout(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusReserved(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusResetContent(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusSeeOther(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusServiceUnavailable(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusSwitchingProtocols(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusTemporaryRedirect(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusTooEarly(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusTooManyRequests(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnauthorized(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnavailableForLegalReasons(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnprocessableEntity(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUnsupportedMediaType(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUpgradeRequired(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUriTooLong(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusUseProxy(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusVariantAlsoNegotiates(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertResponseStatusVersionNotSupported(Psr\Http\Message\ResponseInterface $response): void;
    public static function assertServerRequest(mixed $request, string $method, string $uri): void;
    public static function assertServerRequestAttributes(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestBody(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestContains(mixed $serveRequest, string $header): void;
    public static function assertServerRequestCookieParams(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestHasHeader(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestHasUri(Psr\Http\Message\ServerRequestInterface $request, mixed $expected): void;
    public static function assertServerRequestHeader(Psr\Http\Message\ServerRequestInterface $request, string $name, array $expected): void;
    public static function assertServerRequestHeaderContains(mixed $serveRequest, string $header): void;
    public static function assertServerRequestHeaderMatches(mixed $serveRequest, string $header): void;
    public static function assertServerRequestHeaders(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestJsonBodyContains(mixed $request, string $method, string $uri): void;
    public static function assertServerRequestMethod(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestParsedBody(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestProtocolVersion(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestQueryParams(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestRequestTarget(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
    public static function assertServerRequestUploadedFiles(Psr\Http\Message\ServerRequestInterface $request, array $expected): void;
    public static function assertServerRequestUriPath(Psr\Http\Message\ServerRequestInterface $request, string $expected): void;
}

LinkTrait

<?php
trait LinkTrait {
    public static function assertImplementsEvolvableLinkInterface(mixed $actual): void;
    public static function assertImplementsEvolvableLinkProviderInterface(mixed $actual): void;
    public static function assertImplementsLinkInterface(mixed $actual): void;
    public static function assertImplementsLinkProviderInterface(mixed $actual): void;
}

LogTrait

<?php
trait LogTrait {
    public static function assertExtendsAbstractLogger(mixed $actual): void;
    public static function assertExtendsInvalidArgumentException(mixed $actual): void;
    public static function assertImplementsLoggerAwareInterface(mixed $actual): void;
    public static function assertImplementsLoggerInterface(mixed $actual): void;
    public static function assertPsrLoggerWrites(mixed $client, string $level): void;
    public static function assertUsesLoggerAwareTrait(mixed $actual): void;
    public static function assertUsesLoggerTrait(mixed $actual): void;
}

SimpleCacheTrait

<?php
trait SimpleCacheTrait {
    public static function assertImplementsCacheInterface(mixed $actual): void;
    public static function assertImplementsInvalidArgumentException(mixed $actual): void;
    public static function assertImplementsSimpleCacheException(mixed $actual): void;
    public static function assertInstanceOfSimpleCacheCacheException(mixed $actual): void;
    public static function assertInstanceOfSimpleCacheInterface(mixed $actual): void;
    public static function assertInstanceOfSimpleCacheInvalidArgumentException(mixed $actual): void;
}