mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: always use attributes instead of annotations
This commit is contained in:
@ -12,7 +12,7 @@ class ExecutedTest extends TestCase
|
||||
{
|
||||
public static $executed = false;
|
||||
|
||||
/** @test */
|
||||
#[Test]
|
||||
public function testThatGetsExecuted(): void
|
||||
{
|
||||
self::$executed = true;
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user