dmaicher / doctrine-test-bundle

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

Incorrect listener class #74

Closed truckee closed 5 years ago

truckee commented 5 years ago

At least with Symfony 4.2.2 it was necessary to replace

<listener class="\DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" />

with

<listener class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" />
dmaicher commented 5 years ago

Then something seems weird with your autoloading?

The test suite is also run with Symfony 4.2 on this bundle with this config:

https://github.com/dmaicher/doctrine-test-bundle/blob/master/tests/phpunit.xml#L34

truckee commented 5 years ago

Curious. My untouched phpunit.xml.dist from which I created a phpunit.xml has <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />. Because of that, and the could not find message I got, I modified to <listener class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" />.

I doubt there's much value in trying to sort that out so I'll close this if you don't mind.