From 299559e596389ef9e438e361516264539fb8fdde Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 12 Dec 2024 12:22:28 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- tests/Foundation/Console/TerminatingConsoleTest.php | 3 ++- tests/Helpers/TransformRealpathToRelativeTest.php | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Foundation/Console/TerminatingConsoleTest.php b/tests/Foundation/Console/TerminatingConsoleTest.php index 754b9286..c497d457 100644 --- a/tests/Foundation/Console/TerminatingConsoleTest.php +++ b/tests/Foundation/Console/TerminatingConsoleTest.php @@ -3,11 +3,12 @@ namespace Orchestra\Testbench\Tests\Foundation\Console; use Orchestra\Testbench\Foundation\Console\TerminatingConsole; +use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; class TerminatingConsoleTest extends TestCase { - /** @test */ + #[Test] public function it_can_handle_terminating_callbacks_on_terminal() { $this->assertFalse(isset($_SERVER['TerminatingConsole.before'])); diff --git a/tests/Helpers/TransformRealpathToRelativeTest.php b/tests/Helpers/TransformRealpathToRelativeTest.php index 22c0097b..1e6a46ed 100644 --- a/tests/Helpers/TransformRealpathToRelativeTest.php +++ b/tests/Helpers/TransformRealpathToRelativeTest.php @@ -3,6 +3,7 @@ namespace Orchestra\Testbench\Tests\Helpers; use Orchestra\Testbench\TestCase; +use PHPUnit\Framework\Attributes\Test; use function Orchestra\Testbench\default_skeleton_path; use function Orchestra\Testbench\join_paths; @@ -11,7 +12,7 @@ class TransformRealpathToRelativeTest extends TestCase { - /** @test */ + #[Test] public function it_can_use_transform_realpath_to_relative() { $this->assertSame('Testbench.php', transform_realpath_to_relative('Testbench.php')); @@ -32,7 +33,7 @@ public function it_can_use_transform_realpath_to_relative() ); } - /** @test */ + #[Test] public function it_can_use_transform_realpath_to_relative_using_custom_working_path() { $this->assertSame(