-
Notifications
You must be signed in to change notification settings - Fork 181
Description
Preconditions
- Bundle version 4.0
- PHP Unit version 7.5.20
- Symfony version 5.0.5
- PHP version 7.3.13
- 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.