diff --git a/tests/unit/TypeResolverTest.php b/tests/unit/TypeResolverTest.php index 272535e6..a1da11e3 100644 --- a/tests/unit/TypeResolverTest.php +++ b/tests/unit/TypeResolverTest.php @@ -964,6 +964,24 @@ public function typeProvider(): array ] ), ], + [ + '(A&B)|C|(D&E)', + new Compound([ + new Expression( + new Intersection([ + new Object_(new Fqsen('\\phpDocumentor\\A')), + new Object_(new Fqsen('\\phpDocumentor\\B')), + ]), + ), + new Object_(new Fqsen('\\phpDocumentor\\C')), + new Expression( + new Intersection([ + new Object_(new Fqsen('\\phpDocumentor\\D')), + new Object_(new Fqsen('\\phpDocumentor\\E')), + ]), + ), + ]), + ], [ 'string[]', new Array_(