class DnfTypeParsingTest extends TestCase (View source)

Tests for DNF (Disjunctive Normal Form) type support: int|(Foo&Bar) Also covers pure intersection types, roundtrip serialization, and edge cases.

Methods

static array
dnfTypeStringProvider()

No description

void
testTypeNodeConverterRoundtrip(string $typeStr, string $expected)

No description

__construct(string $str)

No description

string
toString()

No description

Details

void testUnionTypeAcceptsIntersectionMember()

No description

Return Value

void

void testUnionTypeToStringWithOnlyStandaloneMembers()

No description

Return Value

void

void testUnionTypeToStringWithMultipleIntersectionMembers()

No description

Return Value

void

static array dnfTypeStringProvider()

No description

Return Value

array

void testTypeNodeConverterRoundtrip(string $typeStr, string $expected)

No description

Parameters

string $typeStr
string $expected

Return Value

void

__construct(string $str)

No description

Parameters

string $str

string toString()

No description

Return Value

string