OpenTelemetry PHP

AttributeValidatorTest extends TestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Common\Attribute\AttributeValidator::class

Table of Contents

Properties

$validator  : AttributeValidator

Methods

arrayProvider()  : array<string|int, mixed>
nonPrimitiveProvider()  : array<string|int, mixed>
primitiveProvider()  : array<string|int, mixed>
setUp()  : void
test_validate_array()  : void
test_validate_non_primitives()  : void
test_validate_primitives()  : void

Properties

Methods

arrayProvider()

public static arrayProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

nonPrimitiveProvider()

public static nonPrimitiveProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

primitiveProvider()

public static primitiveProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

test_validate_array()

public test_validate_array(mixed $value, bool $expected) : void
Parameters
$value : mixed
$expected : bool
Attributes
#[DataProvider]
'arrayProvider'

test_validate_non_primitives()

public test_validate_non_primitives(mixed $value) : void
Parameters
$value : mixed
Attributes
#[DataProvider]
'nonPrimitiveProvider'

test_validate_primitives()

public test_validate_primitives(mixed $value) : void
Parameters
$value : mixed
Attributes
#[DataProvider]
'primitiveProvider'

        
On this page

Search results