OpenTelemetry PHP

MessageFactoryTest extends TestCase
in package
uses UsesRequestFactoryTrait, UsesServerRequestFactoryTrait, UsesResponseFactoryTrait

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Common\Http\Psr\Message\MessageFactory::class

Table of Contents

Methods

test_create_request()  : void
test_create_response()  : void
test_create_server_request()  : void
createRequestFactoryMock()  : RequestFactoryInterface
createResponseFactoryMock()  : ResponseFactoryInterface
createServerRequestFactoryMock()  : ServerRequestFactoryInterface

Methods

createRequestFactoryMock()

private createRequestFactoryMock([string|null $requestMethod = 'GET' ][, string|null $requestUri = '' ]) : RequestFactoryInterface
Parameters
$requestMethod : string|null = 'GET'
$requestUri : string|null = ''
Return values
RequestFactoryInterface

createResponseFactoryMock()

private createResponseFactoryMock([int $code = 200 ][, string $reasonPhrase = '' ]) : ResponseFactoryInterface
Parameters
$code : int = 200
$reasonPhrase : string = ''
Return values
ResponseFactoryInterface

createServerRequestFactoryMock()

private createServerRequestFactoryMock([string|null $requestMethod = 'GET' ][, string|null $requestUri = '' ]) : ServerRequestFactoryInterface
Parameters
$requestMethod : string|null = 'GET'
$requestUri : string|null = ''
Return values
ServerRequestFactoryInterface

        
On this page

Search results