Skip to content

Update phpunit support #63

@larowlan

Description

@larowlan

Problem statement

The codebase has code that references phpunit 4 and 6 😱
It should be using PHPUnit 9 as a minimum, the current bootstrap code doesn't work with Drupal 9
This leads me to believe no-one is writing PHPUnit tests, or if they are, they're not contributing back their fixes to bootstrap.php/phpunit.xml

PHP Fatal error:  During class fetch: Uncaught Error: Class "Drupal\TestTools\PhpUnitCompatibility\RunnerVersion" not found in /app/web/core/tests/Drupal/Tests/PhpUnitCompatibilityTrait.php:10
PHP Warning:  Class "\PHPUnit\Framework\MockObject\Matcher\InvokedRecorder" not found in /app/tests/phpunit/bootstrap.php on line 198

Proposed resolution

Bring the phpunit support up to something that works with Drupal and uses a supported version of PHPUnit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions