SdkAutoloaderTest
extends TestCase
in package
uses
TestState
Attributes
- #[CoversClass]
- \OpenTelemetry\SDK\SdkAutoloader::class
Table of Contents
Properties
- $environmentVariables : array<string|int, mixed>
- $logger : LoggerInterface|MockObject
Methods
- excludeUrlsProvider() : array<string|int, mixed>
- setUp() : void
- test_autoload_from_config_file() : void
- test_autoload_with_late_globals_initializer() : void
- Tests the scenario where the SDK is created from config file, but a custom component uses composer's autoload->files to add its own initializer
- test_disabled() : void
- test_disabled_by_default() : void
- test_disabled_with_invalid_setting() : void
- test_enabled() : void
- test_enabled_by_configuration() : void
- test_enabled_with_excluded_url() : void
- test_exclude_urls() : void
- test_exclude_urls_without_request_uri() : void
- test_noop_if_disabled() : void
- test_sdk_disabled_does_not_disable_propagator() : void
- restoreEnvironmentVariables() : void
- setEnvironmentVariable() : void
- tearDownSharedState() : void
Properties
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
$logger
private
LoggerInterface|MockObject
$logger
Methods
excludeUrlsProvider()
public
static excludeUrlsProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>setUp()
public
setUp() : void
test_autoload_from_config_file()
public
test_autoload_from_config_file() : void
test_autoload_with_late_globals_initializer()
Tests the scenario where the SDK is created from config file, but a custom component uses composer's autoload->files to add its own initializer
public
test_autoload_with_late_globals_initializer() : void
test_disabled()
public
test_disabled() : void
test_disabled_by_default()
public
test_disabled_by_default() : void
test_disabled_with_invalid_setting()
public
test_disabled_with_invalid_setting() : void
test_enabled()
public
test_enabled() : void
test_enabled_by_configuration()
public
test_enabled_by_configuration() : void
test_enabled_with_excluded_url()
public
test_enabled_with_excluded_url() : void
test_exclude_urls()
public
test_exclude_urls(string $exclude, string $uri, bool $expected) : void
Parameters
- $exclude : string
- $uri : string
- $expected : bool
Attributes
- #[DataProvider]
- 'excludeUrlsProvider'
test_exclude_urls_without_request_uri()
public
test_exclude_urls_without_request_uri() : void
test_noop_if_disabled()
public
test_noop_if_disabled() : void
test_sdk_disabled_does_not_disable_propagator()
public
test_sdk_disabled_does_not_disable_propagator() : void
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]