I have an application built on Symfony2 + Doctrine2 which I want to create some tests for (using phpunit).
For example if I want to test a unique validator against a record in the DB, I want to create a record I can work with, but after the test I don't need it anymore. So is there a way to create temporary (or virtual) fixtures or do I have to manually create and delete them?