Skip to content

Commit

Permalink
Add #[CoversTrait]
Browse files Browse the repository at this point in the history
PHPUnit 10 fails with a fatal "Attribute class not found", exit code 255.

PHPUnit 11 throws PHPUnit deprecation notice, exit code 1.
  • Loading branch information
jrfnl committed Sep 3, 2024
1 parent dd5f012 commit dab7ee5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/FooTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
use Exception;
use Jrf\PHPUnit1011\Example\Foo;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\CoversTrait;
use PHPUnit\Framework\TestCase;

#[CoversTrait(Foo::class)]
#[CoversClass(Foo::class)]
final class FooTest extends TestCase
{
Expand Down

0 comments on commit dab7ee5

Please sign in to comment.