PHP Class Behat\Behat\EventDispatcher\Cli\StopOnFailureController

Author: Konstantin Kudryashov ([email protected])
Inheritance: implements Behat\Testwork\Cli\Controller
Datei anzeigen Open project: behat/behat

Public Methods

Method Description
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) Initializes controller.
configure ( Command $command ) Configures command to be executable by the controller.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer Executes controller.
exitOnFailure ( Behat\Behat\EventDispatcher\Event\AfterScenarioTested $event ) Exits if scenario is a failure and if stopper is enabled.

Method Details

__construct() public method

Initializes controller.
public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

configure() public method

Configures command to be executable by the controller.
public configure ( Command $command )
$command Symfony\Component\Console\Command\Command

execute() public method

Executes controller.
public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return null | integer

exitOnFailure() public method

Exits if scenario is a failure and if stopper is enabled.
public exitOnFailure ( Behat\Behat\EventDispatcher\Event\AfterScenarioTested $event )
$event Behat\Behat\EventDispatcher\Event\AfterScenarioTested