PHP Class Behat\Behat\Tester\Cli\RerunController

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, null | string $cachePath, string $basepath ) Initializes controller.
collectFailedScenario ( Behat\Behat\EventDispatcher\Event\AfterScenarioTested $event ) Records scenario if it is failed.
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.
writeCache ( ) Writes failed scenarios cache.

Private Methods

Method Description
generateKey ( Symfony\Component\Console\Input\InputInterface $input ) : string Generates cache key.
getFileName ( ) : null | string Returns cache filename (if exists).

Method Details

__construct() public method

Initializes controller.
public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, null | string $cachePath, string $basepath )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$cachePath null | string
$basepath string

collectFailedScenario() public method

Records scenario if it is failed.
public collectFailedScenario ( Behat\Behat\EventDispatcher\Event\AfterScenarioTested $event )
$event Behat\Behat\EventDispatcher\Event\AfterScenarioTested

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

writeCache() public method

Writes failed scenarios cache.
public writeCache ( )