OpenTelemetry PHP

AttributesConverterTest extends TestCase
in package

Attributes
#[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

Methods

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_convert_basic_types()

public test_convert_basic_types(mixed $value, string $expected) : void
Parameters
$value : mixed
$expected : string
Attributes
#[DataProvider]
'basicTypesProvider'

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
Attributes
#[DataProvider]
'arrayProvider'

        
On this page

Search results