Property | Type | Description | |
---|---|---|---|
$casesProcessed | integer | The total number of cases printed so far | |
$colors | boolean | Whether to display a red or green bar | |
$column | integer | The current column being printed to | |
$maxColumn | integer | Used for formatting results to a given width | |
$numTestsWidth | integer | Used to determine when to tally current results and start a new row | |
$numberOfColumns | integer | Number of columns | |
$processSkipped | boolean | Do we need to try to process skipped/incompleted tests. | |
$results | |||
$suites | array | A collection of ExecutableTest objects | |
$timer | PHP_Timer | ||
$totalCases | integer | The total number of cases to be run | |
$totalSkippedOrIncomplete | integer | Number of skipped or incomplete tests | |
$warnings | array | Warnings generated by the cases |
Method | Description | |
---|---|---|
__construct ( |
||
addTest ( ParaTest\Runners\PHPUnit\ExecutableTest $suite ) | Adds an ExecutableTest to the tracked results | |
addWarnings ( array $warnings ) | Add an array of warning strings. These cause the test run to be shown as failed | |
flush ( ) | Prints all results and removes any log files used for aggregating results | |
getErrors ( ) : string | Returns error messages | |
getFailures ( ) : string | Returns the failure messages | |
getFooter ( ) : string | Return the footer information reporting success or failure | |
getHeader ( ) : string | Returns the header containing resource usage | |
getTotalCases ( ) : integer | Returns the total cases being printed | |
getWarnings ( ) | Returns warning messages as a string | |
isSuccessful ( ) : boolean | Whether the test run is successful and has no warnings | |
printFeedback ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) | Prints the individual "quick" feedback for run tests, that is the ".EF" items | |
printResults ( ) | Print final results | |
println ( string $string = "" ) | ||
start ( ParaTest\Runners\PHPUnit\Options $options ) | Initializes printing constraints, prints header information and starts the test timer |
Method | Description | |
---|---|---|
getDefects ( array $defects, $type ) : string | Method that returns a formatted string for a collection of errors or failures | |
getProgress ( ) | Prints progress for large test collections | |
isSkippedIncompleTestCanBeTracked ( $options ) : boolean | Is skipped/incomplete amount can be properly processed. | |
printFeedbackItem ( $item ) | Prints a single "quick" feedback item and increments the total number of processed cases and the column position | |
printSkippedAndIncomplete ( integer $actualTestCount, integer $expectedTestCount ) | Prints S for skipped and incomplete tests. | |
printTestWarnings ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) | Prints test warnings. | |
processReaderFeedback ( ParaTest\Logging\JUnit\Reader $reader, integer $expectedTestCount ) | Process reader feedback and print it. | |
processTestOverhead ( integer $actualTestCount, integer $expectedTestCount ) | Process test overhead. |
Method | Description | |
---|---|---|
clearLogs ( ) | Deletes all the temporary log files for ExecutableTest objects being printed | |
getFailedFooter ( ) : string | Get the footer for a test collection that had tests with failures or errors | |
getSuccessFooter ( ) : string | Get the footer for a test collection containing all successful tests | |
green ( $text ) | ||
red ( $text ) |
public __construct ( |
||
$results |
public addTest ( ParaTest\Runners\PHPUnit\ExecutableTest $suite ) | ||
$suite | ParaTest\Runners\PHPUnit\ExecutableTest |
public addWarnings ( array $warnings ) | ||
$warnings | array |
public flush ( ) |
protected getDefects ( array $defects, $type ) : string | ||
$defects | array | |
$type | ||
return | string |
public getFailures ( ) : string | ||
return | string |
public getTotalCases ( ) : integer | ||
return | integer |
protected isSkippedIncompleTestCanBeTracked ( $options ) : boolean | ||
return | boolean |
public isSuccessful ( ) : boolean | ||
return | boolean |
public printFeedback ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) | ||
$test | ParaTest\Runners\PHPUnit\ExecutableTest |
protected printFeedbackItem ( $item ) | ||
$item |
protected printSkippedAndIncomplete ( integer $actualTestCount, integer $expectedTestCount ) | ||
$actualTestCount | integer | |
$expectedTestCount | integer |
protected printTestWarnings ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) | ||
$test | ParaTest\Runners\PHPUnit\ExecutableTest |
protected processReaderFeedback ( ParaTest\Logging\JUnit\Reader $reader, integer $expectedTestCount ) | ||
$reader | ParaTest\Logging\JUnit\Reader | |
$expectedTestCount | integer |
protected processTestOverhead ( integer $actualTestCount, integer $expectedTestCount ) | ||
$actualTestCount | integer | |
$expectedTestCount | integer |
public start ( ParaTest\Runners\PHPUnit\Options $options ) | ||
$options | ParaTest\Runners\PHPUnit\Options |
protected int $casesProcessed | ||
return | integer |
protected bool $colors | ||
return | boolean |
protected int $maxColumn | ||
return | integer |
protected int $numTestsWidth | ||
return | integer |
protected bool $processSkipped | ||
return | boolean |
protected LogInterpreter,ParaTest\Logging $results | ||
return |
protected array $suites | ||
return | array |
protected int $totalCases | ||
return | integer |
protected int $totalSkippedOrIncomplete | ||
return | integer |