PHP Class Sanpi\Behatch\Context\DebugContext

Inheritance: extends BaseContext
Show file Open project: behatch/contexts

Public Methods

Method Description
__construct ( $screenshotDir = '.' )
failScreenshots ( Behat\Behat\Hook\Scope\AfterStepScope $scope )
iPutABreakpoint ( ) Pauses the scenario until the user presses a key. Useful when debugging a scenario.
iSaveAScreenshotIn ( $filename ) Saving a screenshot

Private Methods

Method Description
getBackground ( Behat\Behat\Hook\Scope\AfterStepScope $scope ) : Behat\Gherkin\Node\BackgroundNode
getScenario ( Behat\Behat\Hook\Scope\AfterStepScope $scope ) : Behat\Gherkin\Node\ScenarioInterface

Method Details

__construct() public method

public __construct ( $screenshotDir = '.' )

failScreenshots() public method

public failScreenshots ( Behat\Behat\Hook\Scope\AfterStepScope $scope )
$scope Behat\Behat\Hook\Scope\AfterStepScope

iPutABreakpoint() public method

Pauses the scenario until the user presses a key. Useful when debugging a scenario.
public iPutABreakpoint ( )

iSaveAScreenshotIn() public method

Saving a screenshot
public iSaveAScreenshotIn ( $filename )