PHP Class Alex\BehatLauncher\Behat\RunUnit

Inheritance: implements Symfony\Component\Serializer\Normalizer\NormalizableInterface
Show file Open project: alexandresalome/behat-launcher Class Usage Examples

Public Methods

Method Description
__construct ( )
getCreatedAt ( )
getDuration ( )
getDurationInSeconds ( )
getFeature ( )
getFinishedAt ( )
getId ( )
getOutputFile ( $name ) : OutputFile Returns an OutputFile.
getOutputFiles ( )
getReturnCode ( )
getRun ( )
getStartedAt ( )
getStatus ( ) : string
isFailed ( ) : boolean
isFinished ( ) : boolean
isPending ( ) : boolean
isProcessFinished ( ) : boolean
isRunning ( ) : boolean
isSucceeded ( ) : boolean
normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
prepareOutput ( Project $project ) : Process Starts the unit execution
reset ( )
setCreatedAt ( DateTime $createdAt )
setFeature ( $feature )
setFinishedAt ( DateTime $finishedAt = null )
setId ( $id )
setOutputFile ( $name, $file )
setReturnCode ( $returnCode )
setRun ( Run $run = null )
setStartedAt ( DateTime $startedAt = null )
start ( Project $project, Closure $output )
stop ( )

Method Details

__construct() public method

public __construct ( )

getCreatedAt() public method

public getCreatedAt ( )

getDuration() public method

public getDuration ( )

getDurationInSeconds() public method

getFeature() public method

public getFeature ( )

getFinishedAt() public method

public getFinishedAt ( )

getId() public method

public getId ( )

getOutputFile() public method

Returns an OutputFile.
public getOutputFile ( $name ) : OutputFile
return OutputFile

getOutputFiles() public method

public getOutputFiles ( )

getReturnCode() public method

public getReturnCode ( )

getRun() public method

public getRun ( )

getStartedAt() public method

public getStartedAt ( )

getStatus() public method

public getStatus ( ) : string
return string

isFailed() public method

public isFailed ( ) : boolean
return boolean

isFinished() public method

public isFinished ( ) : boolean
return boolean

isPending() public method

public isPending ( ) : boolean
return boolean

isProcessFinished() public method

public isProcessFinished ( ) : boolean
return boolean a boolean indicating if unit's process is finished.

isRunning() public method

public isRunning ( ) : boolean
return boolean

isSucceeded() public method

public isSucceeded ( ) : boolean
return boolean

normalize() public method

public normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
$normalizer Symfony\Component\Serializer\Normalizer\NormalizerInterface
$context array

prepareOutput() public method

Starts the unit execution
public prepareOutput ( Project $project ) : Process
$project Project
return Symfony\Component\Process\Process

reset() public method

public reset ( )

setCreatedAt() public method

public setCreatedAt ( DateTime $createdAt )
$createdAt DateTime

setFeature() public method

public setFeature ( $feature )

setFinishedAt() public method

public setFinishedAt ( DateTime $finishedAt = null )
$finishedAt DateTime

setId() public method

public setId ( $id )

setOutputFile() public method

public setOutputFile ( $name, $file )

setReturnCode() public method

public setReturnCode ( $returnCode )

setRun() public method

public setRun ( Run $run = null )
$run Run

setStartedAt() public method

public setStartedAt ( DateTime $startedAt = null )
$startedAt DateTime

start() public method

public start ( Project $project, Closure $output )
$project Project
$output Closure

stop() public method

public stop ( )