Свойство | Тип | Описание | |
---|---|---|---|
$colors | array | Maps color names to left and right color sequences. | |
$configuration | |||
$errors | array | ||
$output | Symfony\Component\Console\Output\OutputInterface | ||
$passing | integer | ||
$pending | integer | ||
$symbols | array | Maps symbol names to symbols | |
$time | double | integer |
Метод | Описание | |
---|---|---|
__construct ( |
||
color ( $key, $text ) : string | Given a color name, colorize the provided text in that color | |
footer ( ) | Output result footer | |
getConfiguration ( ) : |
Return the Configuration associated with the Reporter | |
getOutput ( ) : Symfony\Component\Console\Output\OutputInterface | Return the OutputInterface associated with the Reporter | |
getTime ( ) : float | Get the run time to report. | |
init ( ) : void | Initialize reporter. Setup and listen for events | |
setTime ( float $time ) | Set the run time to report. | |
symbol ( $name ) : string | Fetch a symbol by name |
Метод | Описание | |
---|---|---|
hasColorSupport ( ) : boolean | Determine if colorized output is supported by the reporters output. | |
isOnWindows ( ) : boolean | Return true if reporter is being used on windows | |
outputError ( integer $errorNumber, Peridot\Core\TestInterface $test, $exception ) | Output a test failure. | |
registerSymbols ( ) | Register reporter symbols, additionally checking OS compatibility. |
Метод | Описание | |
---|---|---|
hasAnsiSupport ( ) : boolean | Determine if the terminal has ansicon support | |
hasTty ( ) : boolean | Determine if reporter is reporting to a tty terminal. | |
isTtyTerminal ( Symfony\Component\Console\Output\StreamOutput $output ) : boolean | See if stream output is a tty terminal. | |
registerEvents ( ) | Register events tracking state relevant to all reporters. |
public __construct ( |
||
$configuration | ||
$output | Symfony\Component\Console\Output\OutputInterface | |
$eventEmitter | Evenement\EventEmitterInterface |
public getConfiguration ( ) : |
||
Результат |
public getOutput ( ) : Symfony\Component\Console\Output\OutputInterface | ||
Результат | Symfony\Component\Console\Output\OutputInterface |
protected hasColorSupport ( ) : boolean | ||
Результат | boolean |
protected isOnWindows ( ) : boolean | ||
Результат | boolean |
protected outputError ( integer $errorNumber, Peridot\Core\TestInterface $test, $exception ) | ||
$errorNumber | integer | |
$test | Peridot\Core\TestInterface | |
$exception | - an exception like interface with ->getMessage(), ->getTraceAsString() |
protected registerSymbols ( ) |
protected array $colors | ||
Результат | array |
protected Configuration,Peridot $configuration | ||
Результат |
protected OutputInterface,Symfony\Component\Console\Output $output | ||
Результат | Symfony\Component\Console\Output\OutputInterface |