PHP Class Alex\BehatLauncher\Behat\RunUnitList

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

Public Methods

Method Description
__construct ( array $units = [] )
add ( RunUnit $unit ) : Run Adds a run unit to the list.
all ( ) : array Returns all units as a PHP array.
count ( )
countFailed ( ) : integer
countFinished ( ) : integer
countPending ( ) : integer
countRunning ( ) : integer
countSucceeded ( ) : integer
get ( string $id ) : RunUnit Fetches a unit by ID.
getIterator ( )
isFailed ( ) : boolean
isFinished ( ) : boolean
isPending ( ) : boolean
isRunning ( ) : boolean
isSucceeded ( ) : boolean
normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )

Method Details

__construct() public method

public __construct ( array $units = [] )
$units array

add() public method

Adds a run unit to the list.
public add ( RunUnit $unit ) : Run
$unit RunUnit a run unit
return Run

all() public method

Returns all units as a PHP array.
public all ( ) : array
return array

count() public method

public count ( )

countFailed() public method

public countFailed ( ) : integer
return integer

countFinished() public method

public countFinished ( ) : integer
return integer

countPending() public method

public countPending ( ) : integer
return integer

countRunning() public method

public countRunning ( ) : integer
return integer

countSucceeded() public method

public countSucceeded ( ) : integer
return integer

get() public method

Fetches a unit by ID.
public get ( string $id ) : RunUnit
$id string a unit ID
return RunUnit unit with given id

getIterator() public method

public getIterator ( )

isFailed() public method

public isFailed ( ) : boolean
return boolean

isFinished() public method

public isFinished ( ) : boolean
return boolean

isPending() public method

public isPending ( ) : boolean
return boolean

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