Class AbstractBaseReporter
The base class for all Peridot reporters. Sits on top of an OutputInterface and an EventEmitter in order to report Peridot results.
- Peridot\Reporter\AbstractBaseReporter implements Peridot\Reporter\ReporterInterface uses Peridot\Core\HasEventEmitterTrait
Direct known subclasses
Peridot\Reporter\AnonymousReporter, Peridot\Reporter\CompositeReporter, Peridot\Reporter\SpecReporter
Abstract
Namespace: Peridot\Reporter
Package: Peridot\Reporter
Located at Reporter/AbstractBaseReporter.php
Namespace: Peridot\Reporter
Package: Peridot\Reporter
Located at Reporter/AbstractBaseReporter.php
public
|
#
__construct(
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
float
|
|
public
|
|
public
|
|
protected
|
#
outputError( integer $errorNumber,
Output a test failure. |
protected
|
|
protected
boolean
|
#
hasColorSupport( )
Determine if colorized output is supported by the reporters output. Taken from Symfony's console output with some slight modifications to use the reporter's output stream |
protected
|
|
protected
boolean
|
|
abstract public
|
getEventEmitter()
|
getEventEmitter(),
setEventEmitter()
|
protected
|
$configuration
|
|
protected
|
$output
|
|
protected
array
|
$errors
|
#
[]
|
protected
integer
|
$passing
|
#
0
|
protected
integer
|
$pending
|
#
0
|
protected
float|integer
|
$time
|
|
protected
array
|
$colors
Maps color names to left and right color sequences. |
#
array(
'white' => ['left' => "\033[37m", 'right' => "\033[39m"],
'success' => ['left' => "\033[32m", 'right' => "\033[39m"],
'error' => ['left' => "\033[31m", 'right' => "\033[39m"],
'warning' => ['left' => "\033[33m", 'right' => "\033[39m"],
'muted' => ['left' => "\033[90m", 'right' => "\033[0m"],
'pending' => ['left' => "\033[36m", 'right' => "\033[39m"],
)
|
protected
array
|
$symbols
Maps symbol names to symbols |
#
array(
'check' => '✓'
)
|
$eventEmitter
|