Skip to content

Instantly share code, notes, and snippets.

@ValentinMerlet
Last active December 9, 2015 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ValentinMerlet/66c40e5108d6393dfc66 to your computer and use it in GitHub Desktop.
Save ValentinMerlet/66c40e5108d6393dfc66 to your computer and use it in GitHub Desktop.
Behat : Hook BeforeScenarioScope
<?php
/**
* @BeforeScenario
*/
public static function prepare(BeforeScenarioScope $scope)
{
$scenarioTitle = $scope->getScenario()->getTitle();
var_dump($scenarioTitle);die(); // "Create a realizer_proposal"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment