Skip to content

Commit

Permalink
Merge pull request #254 from mimmi20/fix-build
Browse files Browse the repository at this point in the history
disable PHPUnits ErrorHandler for LegacyStyleTests
  • Loading branch information
gsteel authored Jan 3, 2024
2 parents 6f6c60a + 03806fc commit da14621
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 da14621

Please sign in to comment.