Skip to content

phpunit-bridge breaks with phpunit 9.1.2 #36499

@jmsche

Description

@jmsche

Hi,

Since phpunit 9.1.2, the bridge fails with this error:

PHP Fatal error:  Uncaught Error: Access to undeclared static property: PHPUnit\Util\Blacklist::$blacklistedClassNames in /dir/bin/.phpunit/phpunit-9.1-0/phpunit:13
Stack trace:
#0 /dir/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php(343): include()
#1 /dir/bin/phpunit(13): require('/home/jmsche/Si...')
#2 {main}
  thrown in /dir/bin/.phpunit/phpunit-9.1-0/phpunit on line 13

After a little research, I found the commit that breaks it: sebastianbergmann/phpunit@2b4d7b8

So phpunit switches from a public static var to a private constant.

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