Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable PHPUnits ErrorHandler for LegacyStyleTests #254

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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