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\Framework\TestListener that is deprecated #185

Closed pouya-amani-cxt closed 2 years ago

pouya-amani-cxt commented 2 years ago

I upgraded did upgrade on PHP -> 8.0 and packages as well. and got these errors:

The "DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" class implements "PHPUnit\Framework\TestListener" that is deprecated Use theTestHookinterfaces instead.

The "DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" class uses "PHPUnit\Framework\TestListenerDefaultImplementation" that is deprecated TheTestListenerinterface is deprecated.

Seems just need to replace some class names.

Would you please check and give advice.

dmaicher commented 2 years ago

Which version of PHPUnit are you using? Please check the readme. You probably just need to use the extension instead of the listener.

pouya-amani-cxt commented 2 years ago

I am using: PHP 8.0.12 (cli) (built: Oct 21 2021 15:52:54) ( NTS )