Skip to content

Commit

Permalink
Removes expected error type and validate only the message
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <george@net-glue.co.uk>
  • Loading branch information
gsteel committed Jul 25, 2022
1 parent 9c1bfa1 commit b6b10c1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/Annotation/AbstractBuilderTestCase.php
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit b6b10c1

Please sign in to comment.