PHPSpec2\Console\Formatter::__construct PHP Method

__construct() public method

public __construct ( $decorated = null, array $styles = [] )
$styles array
    public function __construct($decorated = null, array $styles = array())
    {
        parent::__construct($decorated, $styles);
        $this->setStyle('pending', new OutputFormatterStyle('yellow'));
        $this->setStyle('pending-bg', new OutputFormatterStyle('black', 'yellow', array('bold')));
        $this->setStyle('failed', new OutputFormatterStyle('red'));
        $this->setStyle('failed-bg', new OutputFormatterStyle('white', 'red', array('bold')));
        $this->setStyle('broken', new OutputFormatterStyle('magenta'));
        $this->setStyle('broken-bg', new OutputFormatterStyle('white', 'magenta', array('bold')));
        $this->setStyle('passed', new OutputFormatterStyle('green'));
        $this->setStyle('passed-bg', new OutputFormatterStyle('black', 'green', array('bold')));
        $this->setStyle('value', new OutputFormatterStyle('yellow'));
        $this->setStyle('lineno', new OutputFormatterStyle(null, 'black'));
        $this->setStyle('code', new OutputFormatterStyle('white'));
        $this->setStyle('hl', new OutputFormatterStyle('black', 'yellow', array('bold')));
        $this->setStyle('trace', new OutputFormatterStyle());
        $this->setStyle('trace-class', new OutputFormatterStyle('cyan'));
        $this->setStyle('trace-func', new OutputFormatterStyle('cyan'));
        $this->setStyle('trace-type', new OutputFormatterStyle());
        $this->setStyle('trace-args', new OutputFormatterStyle());
        $this->setStyle('diff-add', new OutputFormatterStyle('green'));
        $this->setStyle('diff-del', new OutputFormatterStyle('red'));
        $this->setStyle('question', new OutputFormatterStyle('black', 'yellow', array('bold')));
    }
Formatter