From fb109e55214d261c8596e875104ecff8a3704035 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:13:50 +0000 Subject: [PATCH 1/2] Update phpunit/phpunit requirement from ^10.4 to ^11.2 Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/11.2.5/ChangeLog-11.2.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/10.4.0...11.2.5) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From a2e2a36c0cbbd38bd27a5272ad319f7e17265625 Mon Sep 17 00:00:00 2001 From: othillo Date: Fri, 28 Jun 2024 14:59:55 +0200 Subject: [PATCH 2/2] replace annotations with attributes --- tests/Controller/HealthControllerFunctionalTest.php | 6 ++++-- tests/Controller/HealthControllerTest.php | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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();