PHP 클래스 ParaTest\Logging\LogInterpreter

상속: extends ParaTest\Logging\MetaProvider
파일 보기 프로젝트 열기: brianium/paratest 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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