diff --git a/composer.json b/composer.json index b3474c9..27dd57b 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "symfony/http-foundation": "^5.4||^6.4||^7.0" }, "require-dev": { - "phpunit/phpunit": "^10.4", + "phpunit/phpunit": "^11.2", "symfony/framework-bundle": "^5.4||^6.4||^7.0", "symfony/browser-kit": "^5.4||^6.4||^7.0", "symfony/yaml": "^5.4||^6.4||^7.0" diff --git a/tests/Controller/HealthControllerFunctionalTest.php b/tests/Controller/HealthControllerFunctionalTest.php index 3764045..3e62bc9 100644 --- a/tests/Controller/HealthControllerFunctionalTest.php +++ b/tests/Controller/HealthControllerFunctionalTest.php @@ -4,14 +4,16 @@ namespace MainlyCode\HealthBundle\Controller; +use PHPUnit\Framework\Attributes\Test; +use PHPUnit\Framework\Attributes\Group; use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\HttpFoundation\Response; -/** @group functional */ +#[Group('functional')] final class HealthControllerFunctionalTest extends WebTestCase { - /** @test */ + #[Test] public function it_returns_a_200_ok(): void { /** @var KernelBrowser $client */ diff --git a/tests/Controller/HealthControllerTest.php b/tests/Controller/HealthControllerTest.php index 024f4d7..bb67c91 100644 --- a/tests/Controller/HealthControllerTest.php +++ b/tests/Controller/HealthControllerTest.php @@ -4,12 +4,13 @@ namespace MainlyCode\HealthBundle\Controller; +use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Response; final class HealthControllerTest extends TestCase { - /** @test */ + #[Test] public function it_returns_a_200_ok(): void { $controller = new HealthController();