AttributeValidatorTest
extends TestCase
-
#[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
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>
setUp()
public
setUp() : void
test_validate_array()
public
test_validate_array(mixed $value, bool $expected) : void
Parameters
-
$value
: mixed
-
-
$expected
: bool
-
-
#[DataProvider]
-
'arrayProvider'
test_validate_non_primitives()
public
test_validate_non_primitives(mixed $value) : void
Parameters
-
$value
: mixed
-
-
#[DataProvider]
-
'nonPrimitiveProvider'
test_validate_primitives()
public
test_validate_primitives(mixed $value) : void
Parameters
-
$value
: mixed
-
-
#[DataProvider]
-
'primitiveProvider'