PHP Class Sanpi\Behatch\Context\DebugContext

Inheritance: extends BaseContext
Afficher le fichier Open project: behatch/contexts

Méthodes publiques

Méthode 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

Méthode 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 méthode

public __construct ( $screenshotDir = '.' )

failScreenshots() public méthode

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

iPutABreakpoint() public méthode

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

iSaveAScreenshotIn() public méthode

Saving a screenshot
public iSaveAScreenshotIn ( $filename )