diff --git a/test/Annotation/AbstractBuilderTestCase.php b/test/Annotation/AbstractBuilderTestCase.php index 136d4eaf1..57663f1fd 100644 --- a/test/Annotation/AbstractBuilderTestCase.php +++ b/test/Annotation/AbstractBuilderTestCase.php @@ -407,7 +407,6 @@ public function testInputFilterAnnotationAllowsComposition(): void public function testLegacyComposedObjectAnnotation(): void { - $this->expectException(AnnotationException::class); $this->expectExceptionMessageMatches('/Passing a single array .* is deprecated/'); $entity = new TestAsset\Annotation\LegacyComposedObjectAnnotation(); $builder = $this->createBuilder(); @@ -416,7 +415,6 @@ public function testLegacyComposedObjectAnnotation(): void public function testLegacyStyleFilterAnnotations(): void { - $this->expectException(AnnotationException::class); $this->expectExceptionMessageMatches('/Passing a single array .* is deprecated/'); $entity = new TestAsset\Annotation\LegacyFilterAnnotation(); $builder = $this->createBuilder(); @@ -425,7 +423,6 @@ public function testLegacyStyleFilterAnnotations(): void public function testLegacyStyleHydratorAnnotations(): void { - $this->expectException(AnnotationException::class); $this->expectExceptionMessageMatches('/Passing a single array .* is deprecated/'); $entity = new TestAsset\Annotation\LegacyHydratorAnnotation(); $builder = $this->createBuilder(); @@ -434,7 +431,6 @@ public function testLegacyStyleHydratorAnnotations(): void public function testLegacyStyleValidatorAnnotations(): void { - $this->expectException(AnnotationException::class); $this->expectExceptionMessageMatches('/Passing a single array .* is deprecated/'); $entity = new TestAsset\Annotation\LegacyValidatorAnnotation(); $builder = $this->createBuilder();