When using PHPUnit to test a class that relies on the database, the getDataSet() method provides data to serve as the test fixture for the entire suite of tests. That's great, but how does one provide data for a specific test? It's not unusual, especially when using minimized data sets, for each test to require different database data on top of the common data that all tests use. I know the PDO object is available, and in our case, the application's native DB object is also available (meaning, we can run raw queries or use other functionality in the app), but it would be nice to have a way to insert data that's driven off PHPUnit's DataSet containers so that all test data are handled in the same fashion for improved clarity and easier maintenance.
Is there some way to accomplish this?