OpenTelemetry PHP

LogWriterFactoryTest extends TestCase
in package
uses TestState

Attributes
#[CoversClass]
\OpenTelemetry\API\Behavior\Internal\LogWriterFactory::class

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>

Methods

logDestinationProvider()  : array<string|int, mixed>
setUp()  : void
test_log_destination_from_env()  : void
test_psr3_log_destination()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

private array<string|int, mixed> $environmentVariables = []

Methods

logDestinationProvider()

public static logDestinationProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

test_log_destination_from_env()

public test_log_destination_from_env(string $value, string $expected) : void
Parameters
$value : string
$expected : string
Tags
psalm-suppress

ArgumentTypeCoercion

Attributes
#[DataProvider]
'logDestinationProvider'

restoreEnvironmentVariables()

protected restoreEnvironmentVariables() : void
Attributes
#[After]

setEnvironmentVariable()

protected setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
$variable : string
$value : mixed

tearDownSharedState()

protected tearDownSharedState() : void
Attributes
#[After]

        
On this page

Search results