LogWriterFactoryTest
extends TestCase
uses
TestState
-
#[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
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
logDestinationProvider()
public
static logDestinationProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
setUp()
public
setUp() : void
test_log_destination_from_env()
public
test_log_destination_from_env(string $value, string $expected) : void
Parameters
-
$value
: string
-
-
$expected
: string
-
-
psalm-suppress
-
-
#[DataProvider]
-
'logDestinationProvider'
test_psr3_log_destination()
public
test_psr3_log_destination() : void
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void