/**
  * A test ended.
  *
  * @param \PHPUnit_Framework_Test $test
  * @param float                   $time
  */
 public function endTest(\PHPUnit_Framework_Test $test, $time)
 {
     if (!$this->lastTestFailed) {
         $message = 'passed';
         $this->write($this->colors ? Coloring::green($message) : $message);
     }
     parent::endTest($test, $time);
     $this->lastEvent = \PHPUnit_TextUI_ResultPrinter::EVENT_TEST_END;
 }
 /**
  * A test ended.
  *
  * @param \PHPUnit_Framework_Test $test
  * @param float                   $time
  */
 public function endTest(\PHPUnit_Framework_Test $test, $time)
 {
     if ($this->colors && !$this->lastTestFailed) {
         $this->writeProgress(Coloring::green('.'));
         $this->lastTestFailed = true;
     }
     parent::endTest($test, $time);
     $this->lastEvent = self::EVENT_TEST_END;
 }