liip / liip/LiipFunctionalTestBundle
Call to undefined method doRun()
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 648
- Forks
- 179
- PR merge metrics
- No merged PRs in 30d
Description
Preconditions
- Bundle version 4.0
- PHP Unit version 7.5.20
- Symfony version 5.0.5
- PHP version 7.3.13
- My
.env.testlooks 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with ./bin/phpunit and compare it with ./vendor/bin/phpunit, as the issue reports different behavior. Read bin/phpunit, vendor/symfony/phpunit-bridge/bin/simple-phpunit.php, and the referenced PHPUnit TextUI/Command.php path. Done means the bridge command runs the test suite without the undefined doRun() error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100