Skip to content

Call to undefined method doRun() #565

Description

@unlikenesses

Preconditions

  1. Bundle version 4.0
  2. PHP Unit version 7.5.20
  3. Symfony version 5.0.5
  4. PHP version 7.3.13
  5. My .env.test looks like this:
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/test.sqlite

and the test.sqlite database has been created and has the correct schema.

Steps to reproduce

After installing the bundle and running ./bin/phpunit, I get this error:

HP Fatal error: Uncaught Error: Call to undefined method PHPUnit\TextUI\TestRunner::doRun() in /app/bin/.phpunit/phpunit-7.5-0/src/TextUI/Command.php:206
Stack trace:
#0 /app/bin/.phpunit/phpunit-7.5-0/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#1 /app/bin/.phpunit/phpunit-7.5-0/phpunit(17): PHPUnit\TextUI\Command::main()
#2 /app/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php(343): include('/app/bin/.phpun...')
#3 /app/bin/phpunit(13): require('/app/vendor/sym...')
#4 {main}
thrown in /app/bin/.phpunit/phpunit-7.5-0/src/TextUI/Command.php on line 206

EDIT:

It works if you run ./vendor/bin/phpunit. So apparently it doesn't work with the bridge version.

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

    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