im trying to test symfony application behaviour by BDD symfony plugin and im stucked because i realized i dont know how to reset database directly by PHP in my BDD bootstraping file :-/ .
Does anybody know how to reset it without loading fixtures? (Result has to be empty database)
If you mean reset on every test (eg running
test:all), I have this in atest/bootstrap/db.phpfile and include it at the end ofunit.phporfunctional.phpThis assumes that
$configurationis defined in eg yourunit.phporfunctional.phpfile as it normally is by default.The above is used with the built-in lime test suite, but I’m sure you can extend/implement it appropriately in your BDD bootstrap.