PHP Класс ParaTest\Logging\LogInterpreter

Наследование: extends ParaTest\Logging\MetaProvider
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$readers array A collection of Reader objects to aggregate results from

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

addReader() публичный Метод

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

extendEmptyCasesFromSuites() защищенный Метод

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

flattenCases() публичный Метод

Flattens all cases into their respective suites
public flattenCases ( ) : array
Результат array $suites a collection of suites and their cases

getCases() публичный Метод

Get all test case objects found within the collection of Reader objects
public getCases ( ) : array
Результат array

getMessages() защищенный Метод

Gets messages of a given type and merges them into a single collection
protected getMessages ( $type ) : array
$type
Результат array

getNumericValue() защищенный Метод

Returns a value as either a float or int
protected getNumericValue ( $property ) : float | integer
$property
Результат float | integer

getReaders() публичный Метод

Return all Reader objects associated with the LogInterpreter
public getReaders ( ) : ParaTest\Logging\JUnit\Reader[]
Результат ParaTest\Logging\JUnit\Reader[]

isSuccessful() публичный Метод

Returns true if total errors and failures equals 0, false otherwise
public isSuccessful ( ) : boolean
Результат boolean

rewind() публичный Метод

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

Описание свойств

$readers защищенное свойство

A collection of Reader objects to aggregate results from
protected array $readers
Результат array