Skip to content

Instantly share code, notes, and snippets.

@norberttech
Created February 17, 2014 20:26
Show Gist options
  • Save norberttech/9058430 to your computer and use it in GitHub Desktop.
Save norberttech/9058430 to your computer and use it in GitHub Desktop.
Check scenario tags
<?php
namespace FSi\Bundle\AdminBundle\Behat\Context;
use Behat\Behat\Context\BehatContext;
use Behat\Behat\Event\ScenarioEvent;
class FeatureContext extends BehatContext
{
/**
* @AfterScenario
*/
public function afterScenarioEvent(ScenarioEvent $event)
{
var_dump($event->getScenario()->getTags());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment