Problem
TestBase::tearDown()cleans up the database + file system after executing a test, but business logic belongs to the "test runner" operations, which are all performed inTestBase::run().
Proposed solution
- Move test environment clearing from
TestBase::tearDown()intoTestBase::run().
Comments
Comment #1
sunMade obsolete by #2170023: Use exceptions when something goes wrong in test setup, I think.