Snippet permettant d’éxécuter des actions à la fin de l’éxécution d’une feature Behat.
/**
* Defines application features from the specific context.
*/
class FeatureContext extends RawDrupalContext implements SnippetAcceptingContext {
/**
* That function will be executed after the end of the feature.
*
* @AfterFeature
*/
public static function cleanupSomethingAfterFeatureExcution() {
// Do something.
}
}