Issue #3405353: Convert use of TestCase::getName to forward compatible TestCase::name
1 unresolved thread
Closes #3405353
Merge request reports
Activity
16 16 * Makes Drupal's test API forward compatible with multiple versions of PHPUnit. 17 17 */ 18 18 trait PhpUnitCompatibilityTrait { 19 20 /** 21 * Get test name. 22 */ 23 public function name(): string { 24 return $this->getName(); 25 } 26 - Comment on lines +19 to +26
Can we say
trait PhpUnitCompatibilityTrait { use Drupal\TestTools\PhpUnitCompatibility\PhpUnit9\TestCompatibilityTrait; }
to extend the existing trait (again only for PHPStan's benefit) instead of copy-pasting code?
Edited by Dave Longchanged this line in version 3 of the diff
added 296 commits
-
d68c2bb6...d3c96ddf - 294 commits from branch
project:11.x
- 514c5720 - Merge branch '11.x' into 3405353-convert-use-of
- a0d1e809 - fixes
-
d68c2bb6...d3c96ddf - 294 commits from branch
added 42 commits
-
55422f04...ba4f2951 - 40 commits from branch
project:11.x
- 30a4b306 - Merge branch '11.x' into 3405353-convert-use-of
- 4e2f8810 - fixed ScaffoldUpgradeTest
-
55422f04...ba4f2951 - 40 commits from branch
added 61 commits
-
4e2f8810...6d9a73fe - 60 commits from branch
project:11.x
- 31257ea9 - Merge branch '11.x' into 3405353-convert-use-of
-
4e2f8810...6d9a73fe - 60 commits from branch
Please register or sign in to reply