Skip to content

Commit

Permalink
disable PHPUnits ErrorHandler for LegacyStyleTests
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Müller <mimmi20@live.de>
  • Loading branch information
mimmi20 committed Jan 3, 2024
1 parent 6f6c60a commit 03806fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Annotation/AbstractBuilderTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
use LaminasTest\Form\TestAsset\Annotation\Form;
use LaminasTest\Form\TestAsset\Annotation\InputFilter;
use LaminasTest\Form\TestAsset\Annotation\InputFilterInput;
use PHPUnit\Framework\Attributes\WithoutErrorHandler;
use PHPUnit\Framework\TestCase;
use Throwable;

Expand Down Expand Up @@ -509,6 +510,7 @@ public function testInputFilterAnnotationAllowsComposition(): void
self::assertCount(2, $inputFilter->get('username')->getValidatorChain());
}

#[WithoutErrorHandler]
public function testLegacyComposedObjectAnnotation(): void
{
ErrorHandler::setErrorHandler();
Expand All @@ -524,6 +526,7 @@ public function testLegacyComposedObjectAnnotation(): void
}
}

#[WithoutErrorHandler]
public function testLegacyStyleFilterAnnotations(): void
{
ErrorHandler::setErrorHandler();
Expand All @@ -539,6 +542,7 @@ public function testLegacyStyleFilterAnnotations(): void
}
}

#[WithoutErrorHandler]
public function testLegacyStyleHydratorAnnotations(): void
{
ErrorHandler::setErrorHandler();
Expand All @@ -554,6 +558,7 @@ public function testLegacyStyleHydratorAnnotations(): void
}
}

#[WithoutErrorHandler]
public function testLegacyStyleValidatorAnnotations(): void
{
ErrorHandler::setErrorHandler();
Expand Down

0 comments on commit 03806fc

Please sign in to comment.