DEV Community

Discussion on: How I can have on each phpunit test specific tearDown logic?

Collapse
 
robdwaller profile image
Rob Waller

Another approach is to run these tests against an in memory database which rebuilds when required.

Also assuming these tests interact with the database I'd classify them as integration tests so I personally wouldn't have them run as part of my unit test suite. I'd have them run as separate process further up my CI pipeline.