diff --git a/tests/ApplicationTest.php b/tests/ApplicationTest.php index ca58ce0..28198d5 100644 --- a/tests/ApplicationTest.php +++ b/tests/ApplicationTest.php @@ -3,10 +3,11 @@ namespace Orchestra\Testbench\BrowserKit\Tests; use Orchestra\Testbench\BrowserKit\TestCase; +use PHPUnit\Framework\Attributes\Test; class ApplicationTest extends TestCase { - /** @test */ + #[Test] public function itUsesTestingAsEnvironment() { $this->assertEquals('testing', $this->app->environment()); diff --git a/tests/RouteTest.php b/tests/RouteTest.php index 82b5460..19351f0 100644 --- a/tests/RouteTest.php +++ b/tests/RouteTest.php @@ -4,6 +4,7 @@ use Illuminate\Routing\Router; use Orchestra\Testbench\BrowserKit\TestCase; +use PHPUnit\Framework\Attributes\Test; class RouteTest extends TestCase { @@ -36,7 +37,7 @@ protected function defineRoutes($router) $router->resource('foo', 'Orchestra\Testbench\BrowserKit\Tests\Stubs\Controller'); } - /** @test */ + #[Test] public function canSendRequest() { $crawler = $this->call('GET', 'hello'); @@ -48,7 +49,7 @@ public function canSendRequest() $this->assertEquals('goodbye world', $crawler->getContent()); } - /** @test */ + #[Test] public function canSendRequestViaNamedRoute() { $crawler = $this->route('GET', 'hi'); @@ -60,7 +61,7 @@ public function canSendRequestViaNamedRoute() $this->assertEquals('goodbye world', $crawler->getContent()); } - /** @test */ + #[Test] public function canSendRequestWithPrefix() { $crawler = $this->call('GET', 'boss/hello'); @@ -72,7 +73,7 @@ public function canSendRequestWithPrefix() $this->assertEquals('goodbye boss', $crawler->getContent()); } - /** @test */ + #[Test] public function canSendRequestWithPrefixViaNamedRoute() { $crawler = $this->route('GET', 'boss.hi'); @@ -84,7 +85,7 @@ public function canSendRequestWithPrefixViaNamedRoute() $this->assertEquals('goodbye boss', $crawler->getContent()); } - /** @test */ + #[Test] public function canSendRequestUsingActionHelper() { $crawler = $this->action('GET', 'Orchestra\Testbench\BrowserKit\Tests\Stubs\Controller@index'); @@ -93,7 +94,7 @@ public function canSendRequestUsingActionHelper() $this->assertEquals('Controller@index', $crawler->getContent()); } - /** @test */ + #[Test] public function canSendRequestUsingCallHelper() { $crawler = $this->call('GET', 'foo'); @@ -102,7 +103,7 @@ public function canSendRequestUsingCallHelper() $this->assertEquals('Controller@index', $crawler->getContent()); } - /** @test */ + #[Test] public function canSendRequestUsingPostAndReturnJson() { $crawler = $this->post('foo', [