From 03806fc9be80d1b51a8f31c46e7b7a678c64561c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 3 Jan 2024 21:01:33 +0100 Subject: [PATCH] disable PHPUnits ErrorHandler for LegacyStyleTests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Müller --- test/Annotation/AbstractBuilderTestCase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/Annotation/AbstractBuilderTestCase.php b/test/Annotation/AbstractBuilderTestCase.php index 99e3efaa..1a3ee43b 100644 --- a/test/Annotation/AbstractBuilderTestCase.php +++ b/test/Annotation/AbstractBuilderTestCase.php @@ -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; @@ -509,6 +510,7 @@ public function testInputFilterAnnotationAllowsComposition(): void self::assertCount(2, $inputFilter->get('username')->getValidatorChain()); } + #[WithoutErrorHandler] public function testLegacyComposedObjectAnnotation(): void { ErrorHandler::setErrorHandler(); @@ -524,6 +526,7 @@ public function testLegacyComposedObjectAnnotation(): void } } + #[WithoutErrorHandler] public function testLegacyStyleFilterAnnotations(): void { ErrorHandler::setErrorHandler(); @@ -539,6 +542,7 @@ public function testLegacyStyleFilterAnnotations(): void } } + #[WithoutErrorHandler] public function testLegacyStyleHydratorAnnotations(): void { ErrorHandler::setErrorHandler(); @@ -554,6 +558,7 @@ public function testLegacyStyleHydratorAnnotations(): void } } + #[WithoutErrorHandler] public function testLegacyStyleValidatorAnnotations(): void { ErrorHandler::setErrorHandler();