Problem/Motivation
Drupal/Tests/Core/Render/RendererTest has a few PHPStan failures like
$ignoreErrors[] = [
'message' => '#^Static call to instance method PHPUnit\\\\Framework\\\\TestCase\\:\\:exactly\\(\\)\\.$#',
'identifier' => 'method.staticCall',
'count' => 3,
'path' => __DIR__ . '/tests/Drupal/Tests/Core/Render/RendererTest.php',
];that are reported when PHPStan runs with PHPUnit 11 in place.
Proposed resolution
Fix.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3497128
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3497128-fix-static-call
changes, plain diff MR !10781
Comments
Comment #3
mondrakeComment #4
mondrakeComment #5
mondrakeAgh, mocks in data providers...
Comment #6
mondrakeComment #7
longwaveThe more we have to mess with these closures the more I feel like we should just refactor the entire test to be easier to read, but this will do for now.
Comment #9
catchCommitted/pushed to 11.x, thanks!
Comment #11
mondrake.