OpenTelemetry PHP

LoggerExporterTest extends TestCase
in package
uses LoggerAwareTestTrait

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

Table of Contents

Constants

LOG_LEVEL  = 'debug'
SERVICE_NAME  = 'LoggerExporterTest'

Properties

$logger  : LoggerInterface|null

Methods

createExporter()  : LoggerExporter
test_export_granularity_aggregate()  : void
test_export_granularity_span()  : void
test_logger_throws_exception()  : void
createMock()  : MockObject
createSpanConverterInterfaceMock()  : SpanConverterInterface
createSpanMocks()  : array<string|int, mixed>
getLoggerInterfaceMock()  : LoggerInterface|MockObject
createLoggerExporter()  : LoggerExporter

Constants

Properties

Methods

test_export_granularity_aggregate()

public test_export_granularity_aggregate() : void
Tags
psalm-suppress

PossiblyUndefinedMethod

psalm-suppress

PossiblyInvalidArgument

test_export_granularity_span()

public test_export_granularity_span() : void
Tags
psalm-suppress

PossiblyUndefinedMethod

psalm-suppress

PossiblyInvalidArgument

test_logger_throws_exception()

public test_logger_throws_exception() : void
Tags
psalm-suppress

PossiblyUndefinedMethod

psalm-suppress

PossiblyInvalidArgument

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