How can I use PHPUnit to set up and tear down the database using a SQL file?
- by Ben Dauphinee
I have a MySQL file that represents my database in a specific state that would allow me to test a class I am working on. What I want to do is have PHPUnit clean and rebuild the database from this file for each test or set of tests.
How can I go about that without having to resort to rewriting the data in the XML format that PHPUnit uses?