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

PHPUnit 10 #242

Closed ruudk closed 1 year ago

ruudk commented 1 year ago

Does this also work with PHPUnit 10?

The XSD says this is no longer valid:

Screenshot 2023-02-03 at 20 01 42@2x
dmaicher commented 1 year ago

As of now its not working with version 10. I'm looking into it

dmaicher commented 1 year ago

@ruudk could you try https://github.com/dmaicher/doctrine-test-bundle/pull/243 ?

I don't have a project yet using PHPUnit 10 but the testsuite for this bundle passes which hopefully means it works fine :blush:

Has to be configured like this for v10:

    <extensions>
        <bootstrap class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
    </extensions>
garak commented 1 year ago

I tried it on a project of mine and it seems working. ~I can't tell for sure because I have had many failures, but I guess it's something related to Symfony itself~ Edit: it was my fault. Now I have a fully successful test suite

fico7489 commented 10 months ago

@dmaicher it works! thanks!