I've seen how Hierarchical Context Runner works in JUnit and it's pretty awesome.
It allows you to declare multiple setups in a single test class. This is great when you are testing multiple scenarios(it is more like doing BDD) Hierarchical Runner Explanation
Would be nice to have something like this in PHPUnit but, I just can't achieve this.
I've tried using @before
annotations in methods after some actual tests,
I tried to declare inner classes but then I discovered that is not allowed in PHP 5, and many other things without success.
Is there a way to achieve this ?
Any help is appreciated. Thanks in advance
Aucun commentaire:
Enregistrer un commentaire