From 48aba9b3d6001b3d8acfd89530a30fca8b3482cb Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 10 Oct 2024 09:10:15 +0200 Subject: [PATCH] pass the test name to the WebTestCase constructor The test name argument is mandatory since PHPUnit 10. --- Tests/Test/WebTestCaseTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Test/WebTestCaseTest.php b/Tests/Test/WebTestCaseTest.php index 8f0c8fb42..5c77ce778 100644 --- a/Tests/Test/WebTestCaseTest.php +++ b/Tests/Test/WebTestCaseTest.php @@ -339,7 +339,7 @@ private function getRequestTester(): WebTestCase private function getTester(KernelBrowser $client): WebTestCase { - $tester = new class() extends WebTestCase { + $tester = new class(method_exists($this, 'name') ? $this->name() : $this->getName()) extends WebTestCase { use WebTestAssertionsTrait { getClient as public; }