OpenTelemetry PHP

LoggerDecoratorTest extends AbstractLoggerAwareTestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Trace\SpanExporter\LoggerDecorator::class

Table of Contents

Properties

$logger  : LoggerInterface|null
$decorated  : SpanExporterInterface|null

Methods

test_export_failed()  : void
test_export_success()  : void
test_force_flush()  : void
test_shut_down()  : void
createMock()  : MockObject
createSpanConverterInterfaceMock()  : SpanConverterInterface
createSpanMocks()  : array<string|int, mixed>
getLoggerInterfaceMock()  : LoggerInterface|MockObject
createLoggerDecorator()  : LoggerDecorator
getSpanExporterInterfaceMock()  : SpanExporterInterface|MockObject

Properties

Methods

test_export_failed()

public test_export_failed() : void
Tags
psalm-suppress

PossiblyUndefinedMethod

psalm-suppress

PossiblyInvalidArgument

test_export_success()

public test_export_success() : void
Tags
psalm-suppress

PossiblyUndefinedMethod

psalm-suppress

PossiblyInvalidArgument

test_force_flush()

public test_force_flush() : void
Tags
psalm-suppress

PossiblyUndefinedMethod

test_shut_down()

public test_shut_down() : void
Tags
psalm-suppress

PossiblyUndefinedMethod

createMock()

protected abstract createMock(string $originalClassName) : MockObject
Parameters
$originalClassName : string
Return values
MockObject

createSpanMocks()

protected createSpanMocks() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLoggerInterfaceMock()

protected getLoggerInterfaceMock() : LoggerInterface|MockObject
Tags
psalm-suppress

MismatchingDocblockReturnType

Return values
LoggerInterface|MockObject

        
On this page

Search results