AttributesConverterTest
extends TestCase
-
#[CoversClass]
-
\OpenTelemetry\Contrib\Otlp\AttributesConverter::class
Table of Contents
Methods
-
arrayProvider()
: array<string|int, mixed>
-
basicTypesProvider()
: array<string|int, mixed>
-
test_complex_array()
: void
-
test_convert_basic_types()
: void
-
test_convert_bytes()
: void
-
test_homogeneous_array_of_primitives()
: void
-
test_is_simple_array()
: void
-
test_kv_array_with_array_values()
: void
arrayProvider()
public
static arrayProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
basicTypesProvider()
public
static basicTypesProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
test_complex_array()
public
test_complex_array() : void
test_convert_basic_types()
public
test_convert_basic_types(mixed $value, string $expected) : void
Parameters
-
$value
: mixed
-
-
$expected
: string
-
-
#[DataProvider]
-
'basicTypesProvider'
test_convert_bytes()
public
test_convert_bytes() : void
test_homogeneous_array_of_primitives()
public
test_homogeneous_array_of_primitives() : void
test_is_simple_array()
public
test_is_simple_array(array<string|int, mixed> $value, bool $expected) : void
Parameters
-
$value
: array<string|int, mixed>
-
-
$expected
: bool
-
-
#[DataProvider]
-
'arrayProvider'
test_kv_array_with_array_values()
public
test_kv_array_with_array_values() : void