describe features using behat
docteurklein opened this issue · comments
Florian Klein commented
this would kill two birds with one stone:
- have an explicit, self-explanative list of features
- test the bundle in black box mode
Roman Ring commented
How to initialize Behat on a bundle though? Where will we get stuff like AppKernel.php
and app_test.php
?
Florian Klein commented
Florian Klein commented
We make a default appkernel, register RadBundle, and App < AppBundle, instanciate and boot the kernel,
and make requests on it.
Florian Klein commented
here is an example of how to describe phpspec features: https://github.com/docteurklein/Symfony2Extension/blob/01363b047d9242e0983adf5ace677d364cc2eee5/features/initialize_default_collaborators.feature
and the context: https://github.com/docteurklein/Symfony2Extension/blob/01363b047d9242e0983adf5ace677d364cc2eee5/features/bootstrap/PhpSpecContext.php