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
$logger
protected
LoggerInterface|null
$logger
$decorated
private
SpanExporterInterface|null
$decorated
Methods
test_export_failed()
public
test_export_failed() : void
Tags
test_export_success()
public
test_export_success() : void
Tags
test_force_flush()
public
test_force_flush() : void
Tags
test_shut_down()
public
test_shut_down() : void
Tags
createMock()
protected
abstract createMock(string $originalClassName) : MockObject
Parameters
- $originalClassName : string
Return values
MockObjectcreateSpanConverterInterfaceMock()
protected
createSpanConverterInterfaceMock() : SpanConverterInterface
Return values
SpanConverterInterfacecreateSpanMocks()
protected
createSpanMocks() : array<string|int, mixed>
Return values
array<string|int, mixed>getLoggerInterfaceMock()
protected
getLoggerInterfaceMock() : LoggerInterface|MockObject
Tags
Return values
LoggerInterface|MockObjectcreateLoggerDecorator()
private
createLoggerDecorator() : LoggerDecorator
Tags
Return values
LoggerDecoratorgetSpanExporterInterfaceMock()
private
getSpanExporterInterfaceMock() : SpanExporterInterface|MockObject