OpenTelemetry PHP

ConfigurationFactoryTest extends TestCase
in package

FinalYes
Attributes
#[CoversClass]
\OpenTelemetry\Config\SDK\Configuration\ConfigurationFactory::class

Table of Contents

Properties

$cacheDir  : string
$properties  : mixed

Methods

openTelemetryConfigurationDataProvider()  : iterable<string|int, mixed>
setUp()  : void
tearDown()  : void
test_cache_configuration()  : void
test_env_substitution_missing_value()  : void
If a property has a default value defined (i.e. is _not_ required) and is missing or present but null, Create MUST ensure the SDK component is configured with the default value.
test_env_substitution_non_string()  : void
test_env_substitution_recursive_does_not_inject_environment_variables()  : void
It MUST NOT be possible to inject environment variable by environment variables.
test_env_substitution_spec_examples()  : void
test_env_substitution_string()  : void
test_env_substitution_with_env_prefix()  : void
test_open_telemetry_configuration()  : void
factory()  : ConfigurationFactory
getPropertiesFromPlugin()  : array<string|int, mixed>

Properties

Methods

openTelemetryConfigurationDataProvider()

public static openTelemetryConfigurationDataProvider() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>

test_env_substitution_missing_value()

If a property has a default value defined (i.e. is _not_ required) and is missing or present but null, Create MUST ensure the SDK component is configured with the default value.

public test_env_substitution_missing_value() : void
Attributes
#[BackupGlobals]
true

test_env_substitution_non_string()

public test_env_substitution_non_string() : void
Attributes
#[BackupGlobals]
true

test_env_substitution_recursive_does_not_inject_environment_variables()

It MUST NOT be possible to inject environment variable by environment variables.

public test_env_substitution_recursive_does_not_inject_environment_variables() : void

For example, see references to DO_NOT_REPLACE_ME environment variable

Attributes
#[BackupGlobals]
true
#[CoversNothing]

test_env_substitution_spec_examples()

public test_env_substitution_spec_examples() : void
Tags
psalm-suppress

MissingTemplateParam

test_env_substitution_string()

public test_env_substitution_string() : void
Attributes
#[BackupGlobals]
true
#[CoversNothing]

test_env_substitution_with_env_prefix()

public test_env_substitution_with_env_prefix() : void
Attributes
#[BackupGlobals]
true
#[CoversNothing]

test_open_telemetry_configuration()

public test_open_telemetry_configuration(string $file) : void
Parameters
$file : string
Attributes
#[DataProvider]
'openTelemetryConfigurationDataProvider'

getPropertiesFromPlugin()

private getPropertiesFromPlugin(ComponentPlugin $plugin) : array<string|int, mixed>
Parameters
$plugin : ComponentPlugin
Tags
psalm-suppress

UndefinedThisPropertyFetch,PossiblyNullFunctionCall

Return values
array<string|int, mixed>

        
On this page

Search results