I am testing that the function correctly adds data to db, but I want the test data to be deleted after the test is completed. If the test fails, it exits with an error and can never delete the test lines.
This is the only test that gets into db, so I really don't want to do anything in the tearDown () method.
I am testing a method like $ obj-> save () that saves data processed from a flat file.
source
share