PHP Class ParaTest\Logging\LogInterpreter

Inheritance: extends ParaTest\Logging\MetaProvider
Afficher le fichier Open project: brianium/paratest Class Usage Examples

Protected Properties

Свойство Type Description
$readers array A collection of Reader objects to aggregate results from

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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 méthode

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 méthode

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

getCases() public méthode

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

getMessages() protected méthode

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

getNumericValue() protected méthode

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

getReaders() public méthode

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

isSuccessful() public méthode

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

rewind() public méthode

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

Property Details

$readers protected_oe property

A collection of Reader objects to aggregate results from
protected array $readers
Résultat array