I've got a MySQL file that signifies my database inside a specific condition that will let me test a category I'm focusing on. What I wish to do is have PHPUnit neat and rebuild the database out of this apply for each test or group of tests.

How do i start that without needing to turn to spinning the information within the XML format that PHPUnit uses?

It's my job to conserve a bootstrap.php file that handles dependency injection and calling a db.sql file. I call that every time among my PHPUnit suites are known as.

For row-specific changes, I am inclined to put individuals during my __construct() way of the system test or perhaps in my individual test situation techniques. This way it's simpler to trace them if I have to change them.

Hope that can help just a little.