PHP Class Alex\BehatLauncher\Workspace

显示文件 Open project: alexandresalome/behat-launcher

Public Methods

Method Description
__construct ( ProjectList $projectList, MysqlStorage $runStorage ) Instanciates workspace.
finish ( ) : Workspace Interrupt the workspace execution.
setOutput ( Symfony\Component\Console\Output\OutputInterface $output = null ) : Workspace Sets the output for workspace to display informations about execution.
tick ( boolean $startNew = false ) : integer Verify pending units, and might run new units (if $startNew argument is true).

Private Methods

Method Description
output ( $text, RunUnit $unit = null, $error = false )
startUnits ( ) : integer
verifyRunning ( boolean $stop = false ) : integer

Method Details

__construct() public method

Instanciates workspace.
public __construct ( ProjectList $projectList, MysqlStorage $runStorage )
$projectList Alex\BehatLauncher\Behat\ProjectList
$runStorage Alex\BehatLauncher\Behat\MysqlStorage

finish() public method

Interrupt the workspace execution.
public finish ( ) : Workspace
return Workspace

setOutput() public method

Sets the output for workspace to display informations about execution.
public setOutput ( Symfony\Component\Console\Output\OutputInterface $output = null ) : Workspace
$output Symfony\Component\Console\Output\OutputInterface
return Workspace

tick() public method

Verify pending units, and might run new units (if $startNew argument is true).
public tick ( boolean $startNew = false ) : integer
$startNew boolean true to startNew for new runs
return integer number of running units