Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48aba9b

Browse files
committed
pass the test name to the WebTestCase constructor
The test name argument is mandatory since PHPUnit 10.
1 parent b1a24f4 commit 48aba9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/Test/WebTestCaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ private function getRequestTester(): WebTestCase
339339

340340
private function getTester(KernelBrowser $client): WebTestCase
341341
{
342-
$tester = new class() extends WebTestCase {
342+
$tester = new class(method_exists($this, 'name') ? $this->name() : $this->getName()) extends WebTestCase {
343343
use WebTestAssertionsTrait {
344344
getClient as public;
345345
}

0 commit comments

Comments
 (0)