PHPUnit_TextUI_ResultPrinter::addSkippedTest PHP Méthode

addSkippedTest() public méthode

Skipped test.
public addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float
    public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
    {
        $this->writeProgressWithColor('fg-cyan, bold', 'S');
        $this->lastTestFailed = true;
    }

Usage Example

 /**
  * Skipped test.
  *
  * @param  PHPUnit_Framework_Test $test
  * @param  Exception              $e
  * @param  float                  $time
  */
 public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
 {
     $message = 'skipped';
     $statusMessage = $test->getStatusMessage();
     if (strlen($statusMessage)) {
         $message .= ' (' . $statusMessage . ')';
     }
     $this->write($this->colors ? Stagehand_TestRunner_Coloring::yellow($message) : $message);
     parent::addSkippedTest($test, $e, $time);
 }
All Usage Examples Of PHPUnit_TextUI_ResultPrinter::addSkippedTest