src/Reporter/Terminal.php
protected function _reportSpecMessage($log)
    {
        $messages = $log->messages();
        $message = end($messages);

        switch ($log->type()) {
            case 'passed':
                $this->write($this->_symbols['ok'], 'light-green');
                $this->write(' ');
                $this->write("{$message}\n", 'dark-grey');
                break;
            case 'skipped':
                $this->write($this->_symbols['ok'], 'light-grey');
                $this->write(' ');
                $this->write("{$message}\n", 'light-grey');
                break;
            case 'pending':
                $this->write($this->_symbols['ok'], 'cyan');
                $this->write(' ');
                $this->write("{$message}\n", 'cyan');
                break;
            case 'excluded':
                $this->write($this->_symbols['ok'], 'yellow');
                $this->write(' ');
                $this->write("{$message}\n", 'yellow');
                break;
            case 'failed':
                $this->write($this->_symbols['err'], 'red');
                $this->write(' ');
                $this->write("{$message}\n", 'red');
                break;
            case 'errored':
                $this->write($this->_symbols['err'], 'red');
                $this->write(' ');
                $this->write("{$message}\n", 'red');
                break;
        }
    }
protected function _reportSpecMessage($log)
    {
        $messages = $log->messages();
        $message = end($messages);

        switch ($log->type()) {
            case 'passed':
                $this->write($this->_symbols['ok'], 'light-green');
                $this->write(' ');
                $this->write("{$message}\n", 'dark-grey');
                break;
            case 'skipped':
                $this->write($this->_symbols['ok'], 'light-grey');
                $this->write(' ');
                $this->write("{$message}\n", 'light-grey');
                break;
            case 'pending':
                $this->write($this->_symbols['ok'], 'cyan');
                $this->write(' ');
                $this->write("{$message}\n", 'cyan');
                break;
            case 'excluded':
                $this->write($this->_symbols['ok'], 'yellow');
                $this->write(' ');
                $this->write("{$message}\n", 'yellow');
                break;
            case 'failed':
                $this->write($this->_symbols['err'], 'red');
                $this->write(' ');
                $this->write("{$message}\n", 'red');
                break;
            case 'errored':
                $this->write($this->_symbols['err'], 'red');
                $this->write(' ');
                $this->write("{$message}\n", 'red');
                break;
        }
    }
protected function _reportSpecMessage ( $ log ) { $ messages = $ log -> messages ( ) ; $ message = end ( $ messages ) ; switch ( $ log -> type ( ) ) { case 'passed' : $ this -> write ( $ this -> _symbols [ 'ok' ] , 'light-green' ) ; $ this -> write ( ' ' ) ; $ this -> write ( "{$message}\n" , 'dark-grey' ) ; break ; case 'skipped' : $ this -> write ( $ this -> _symbols [ 'ok' ] , 'light-grey' ) ; $ this -> write ( ' ' ) ; $ this -> write ( "{$message}\n" , 'light-grey' ) ; break ; case 'pending' : $ this -> write ( $ this -> _symbols [ 'ok' ] , 'cyan' ) ; $ this -> write ( ' ' ) ; $ this -> write ( "{$message}\n" , 'cyan' ) ; break ; case 'excluded' : $ this -> write ( $ this -> _symbols [ 'ok' ] , 'yellow' ) ; $ this -> write ( ' ' ) ; $ this -> write ( "{$message}\n" , 'yellow' ) ; break ; case 'failed' : $ this -> write ( $ this -> _symbols [ 'err' ] , 'red' ) ; $ this -> write ( ' ' ) ; $ this -> write ( "{$message}\n" , 'red' ) ; break ; case 'errored' : $ this -> write ( $ this -> _symbols [ 'err' ] , 'red' ) ; $ this -> write ( ' ' ) ; $ this -> write ( "{$message}\n" , 'red' ) ; break ; } }
Print a spec message report.

@param object $log A spec log instance.
Print a spec message report .