OpenTelemetry PHP

ListParserTest extends TestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Common\Configuration\Parser\ListParser::class

Table of Contents

Constants

LIST_VALUES  = ['empty' => ['', []], 'single item' => ['foo', ['foo']], 'two items' => ['foo,bar', ['foo', 'bar']], 'multiple items' => ['foo,bar,faz,baz', ['foo', 'bar', 'faz', 'baz']], 'multiple items with spaces' => ['foo, bar , faz, baz', ['foo', 'bar', 'faz', 'baz']]]

Methods

listValueProvider()  : array<string|int, mixed>
test_comma_separated_list_returns_array()  : void

Constants

LIST_VALUES

private mixed LIST_VALUES = ['empty' => ['', []], 'single item' => ['foo', ['foo']], 'two items' => ['foo,bar', ['foo', 'bar']], 'multiple items' => ['foo,bar,faz,baz', ['foo', 'bar', 'faz', 'baz']], 'multiple items with spaces' => ['foo, bar , faz, baz', ['foo', 'bar', 'faz', 'baz']]]

Methods

listValueProvider()

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

test_comma_separated_list_returns_array()

public test_comma_separated_list_returns_array(string $value, array<string|int, mixed> $expected) : void
Parameters
$value : string
$expected : array<string|int, mixed>
Attributes
#[DataProvider]
'listValueProvider'

        
On this page

Search results