Skip to content

Rewrite PHPUnit test scaffolding to work with PHP 8.0+ compat code #285

Description

@schlessera

The way the PHPUnit tests are currently being scaffolded does not work with PHP 8.0+:

PHP Parse error:  syntax error, unexpected token "match", expecting identifier in
phar://phpunit/Framework/MockObject/Builder/Match.php on line 15

To fix this, the tests should be scaffolded in such a way that they make use of the WordPress Core compatibility code found in https://core.trac.wordpress.org/changeset/49037. However, that will require a rewrite to make the scaffolded tests rely on PHPUnit being executed as a Composer dev dependency.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo