PHP Class ParaTest\Logging\LogInterpreter

Inheritance: extends ParaTest\Logging\MetaProvider
Show file Open project: brianium/paratest Class Usage Examples

Protected Properties

Property Type Description
$readers array A collection of Reader objects to aggregate results from

Public Methods

Method Description
addReader ( ParaTest\Logging\JUnit\Reader $reader ) Add a new Reader to be included in the final results
flattenCases ( ) : array Flattens all cases into their respective suites
getCases ( ) : array Get all test case objects found within the collection of Reader objects
getReaders ( ) : ParaTest\Logging\JUnit\Reader[] Return all Reader objects associated with the LogInterpreter
isSuccessful ( ) : boolean Returns true if total errors and failures equals 0, false otherwise
rewind ( ) Reset the array pointer of the internal readers collection

Protected Methods

Method Description
extendEmptyCasesFromSuites ( array $cases, ParaTest\Logging\JUnit\TestSuite $suite ) Fix problem with empty testcase from DataProvider
getMessages ( $type ) : array Gets messages of a given type and merges them into a single collection
getNumericValue ( $property ) : float | integer Returns a value as either a float or int

Private Methods

Method Description
accumulate ( $method ) : mixed Reduces a collection of readers down to a single result based on an accessor
mergeMessages ( $method ) : array Flatten messages into a single collection based on an accessor method

Method Details

addReader() public method

Add a new Reader to be included in the final results
public addReader ( ParaTest\Logging\JUnit\Reader $reader )
$reader ParaTest\Logging\JUnit\Reader

extendEmptyCasesFromSuites() protected method

Fix problem with empty testcase from DataProvider
protected extendEmptyCasesFromSuites ( array $cases, ParaTest\Logging\JUnit\TestSuite $suite )
$cases array
$suite ParaTest\Logging\JUnit\TestSuite

flattenCases() public method

Flattens all cases into their respective suites
public flattenCases ( ) : array
return array $suites a collection of suites and their cases

getCases() public method

Get all test case objects found within the collection of Reader objects
public getCases ( ) : array
return array

getMessages() protected method

Gets messages of a given type and merges them into a single collection
protected getMessages ( $type ) : array
$type
return array

getNumericValue() protected method

Returns a value as either a float or int
protected getNumericValue ( $property ) : float | integer
$property
return float | integer

getReaders() public method

Return all Reader objects associated with the LogInterpreter
public getReaders ( ) : ParaTest\Logging\JUnit\Reader[]
return ParaTest\Logging\JUnit\Reader[]

isSuccessful() public method

Returns true if total errors and failures equals 0, false otherwise
public isSuccessful ( ) : boolean
return boolean

rewind() public method

Reset the array pointer of the internal readers collection
public rewind ( )

Property Details

$readers protected property

A collection of Reader objects to aggregate results from
protected array $readers
return array