feat: always use attributes instead of annotations

This commit is contained in:
Nuno Maduro
2024-01-05 18:00:14 +00:00
parent 04d2fa5ce8
commit 53dc9ffa06
20 changed files with 152 additions and 328 deletions

View File

@ -12,7 +12,7 @@ class ExecutedTest extends TestCase
{
public static $executed = false;
/** @test */
#[Test]
public function testThatGetsExecuted(): void
{
self::$executed = true;

View File

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Tests\CustomTestCase;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\assertTrue;
@ -15,7 +16,7 @@ class ParentTest extends TestCase
return false;
}
/** @test */
#[Test]
public function testOverrideMethod(): void
{
assertTrue($this->getEntity() || true);