Skip to content

Commit

Permalink
pass the test name to the WebTestCase constructor
Browse files Browse the repository at this point in the history
The test name argument is mandatory since PHPUnit 10.
  • Loading branch information
xabbuh committed Oct 10, 2024
1 parent b1a24f4 commit 48aba9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Test/WebTestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48aba9b

Please sign in to comment.