public function FailureContext::handleFailure in Commerce Kickstart 7.2
@AfterStep
File
- tests/
behat/ features/ bootstrap/ FailureContext.php, line 27
Class
- FailureContext
- Defines application features from the specific context.
Code
public function handleFailure(AfterStepScope $scope) {
if (99 !== $scope
->getTestResult()
->getResultCode()) {
return;
}
$fileName = $this
->fileName($scope);
$this
->dumpMarkup($fileName);
$this
->screenShot($fileName);
}