Using PHPUnit Fixtures with Behat and Mink
This seems like something that should be fairly trivial but the fixture functionality for PHPUnit's DBUnit is mostly encapsulated in one class which is designed to be used in Test Cases. Since PHP doesn't support multiple inheritance this poses somewhat of a problem if you are using Behat and Mink for BDD but want to be able to easily reset your database after each test. There are some other options out there, using Doctrine or ezComponents, but for me it seemed like DBUnit was the easiest thing to integrate especially since I was already using PHPUnit.

Recent comments