Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6765e6

Browse filesBrowse files
committed
minor #58517 [FrameworkBundle] pass the test name to the WebTestCase constructor (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] pass the test name to the `WebTestCase` constructor | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT The test name argument is mandatory since PHPUnit 10. Commits ------- 93e9a11 pass the test name to the WebTestCase constructor
2 parents 60ffe2d + 93e9a11 commit e6765e6
Copy full SHA for e6765e6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.