dmaicher / doctrine-test-bundle

Symfony bundle to isolate your app's doctrine database tests and improve the test performance
MIT License
1.08k stars 61 forks source link

Class "\DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" does not implement the PHPUnit_Framework_TestListener interface #76

Closed metaer closed 5 years ago

metaer commented 5 years ago

When I use command ./vendor/bin/simple-phpunit from this documentation: https://symfony.com/doc/3.4/testing

I get - Installing phpunit/phpunit (5.7.27): Downloading (100%) ... Writing lock file Generating optimized autoload files

and then such error:

_Class "\DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" does not implement the PHPUnit_FrameworkTestListener interface

dmaicher commented 5 years ago

See this part of the readme:

Make sure you also have phpunit/phpunit available as a dev dependency (versions 6, 7 and 8 are supported with the built in listener) to run your tests. Alternatively this bundle is also compatible with symfony/phpunit-bridge and its simple-phpunit script. (Note: you may need to make sure the phpunit-bridge requires the correct PHPUnit 6+ Version using the environment variable SYMFONY_PHPUNIT_VERSION).

PHPUnit 5 is not supported anymore.