diff --git a/Tests/Test/WebTestCaseTest.php b/Tests/Test/WebTestCaseTest.php index d9f597044..19a4b2b03 100644 --- a/Tests/Test/WebTestCaseTest.php +++ b/Tests/Test/WebTestCaseTest.php @@ -397,7 +397,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; }