Skip to content

Commit 0162c4f

Browse files
authored
Merge pull request #230 from mspirkov/add-tests-for-dnf-types
Add tests for DNF types
2 parents 8cbe610 + e6a7d5a commit 0162c4f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/unit/TypeResolverTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,24 @@ public function typeProvider(): array
964964
]
965965
),
966966
],
967+
[
968+
'(A&B)|C|(D&E)',
969+
new Compound([
970+
new Expression(
971+
new Intersection([
972+
new Object_(new Fqsen('\\phpDocumentor\\A')),
973+
new Object_(new Fqsen('\\phpDocumentor\\B')),
974+
]),
975+
),
976+
new Object_(new Fqsen('\\phpDocumentor\\C')),
977+
new Expression(
978+
new Intersection([
979+
new Object_(new Fqsen('\\phpDocumentor\\D')),
980+
new Object_(new Fqsen('\\phpDocumentor\\E')),
981+
]),
982+
),
983+
]),
984+
],
967985
[
968986
'string[]',
969987
new Array_(

0 commit comments

Comments
 (0)