Closed truckee closed 5 years ago
Sorry but indeed I will close this because that's not an issue with the bundle itself. No idea what Netbeans is doing there.
This question is more suitable for StackOverflow :wink:
Well it isn't Netbeans that's at fault. I started a new project in an effort to create a procedure for reproducing the issue but the error does not appear. Only difference noted between original project and new one is the former showed phpunit as 7.5.16 and the latter as 7.5.17.
Still SEP though.
Edit: Removed and reinstalled global PHPUnit (from 7.1 to 8.4) and all is well in original project. Somebody else === PHPUnit.
@dmaicher This interface doesn't exists before PHPUnit 7.5.
Please reopen the issue as it's not only a bug with Netbeans. On PHPUnit <7.5, the rollback method is not invoked at all.
@Toilal indeed you are right.
I adjusted the readme for this. So please update to PHPUnit 7.5+ or use the listener instead of the extension. Like
<listeners>
<listener class="\DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" />
</listeners>
Attempting to run tests in a Symfony 4.3 application in the Netbeans IDE results in the following:
I strongly suspect the error is due to Netbeans because I can successfully run tests at the command line. I'm just hoping you have some idea on how to test in Netbeans. Its version is the latest development build as of this writing.
symfony/phpunit-bridge
is 4.3.5; PHPUnit is 7.5.16.Interestingly, adding a project dependency to phpunit (as suggested by them) results in a series of phpunit errors. I've since removed the dependency, leaving a big mess to clean up. :
Close this if you believe it's S(omebody) E(lse's) P(roblem).