PHPUnit_Framework_TestResult::skippedCount PHP Метод

skippedCount() публичный Метод

Gets the number of skipped tests.
public skippedCount ( ) : integer
Результат integer
    public function skippedCount()
    {
        return count($this->skipped);
    }

Usage Example

Пример #1
0
 /**
  * Renders the summary of test passes and failures.
  *
  * @param PHPUnit_Framework_TestResult $result Result object
  *
  * @return void
  */
 public function paintFooter($result)
 {
     ob_end_flush();
     echo '</ul>';
     if ($result->failureCount() + $result->errorCount() > 0) {
         echo '<div class="alert-box alert radius">';
     } else {
         echo '<div class="alert-box success radius">';
     }
     echo $result->count() - $result->skippedCount() . ' of ';
     echo $result->count() . ' test methods complete: ';
     echo count($result->passed()) . ' passes, ';
     echo $result->failureCount() . ' fails, ';
     echo $this->numAssertions . ' assertions and ';
     echo $result->errorCount() . ' exceptions.';
     echo '</div>';
     echo '<p><strong>Time:</strong> ' . __('%0.5f seconds', $result->time()) . '</p>';
     echo '<p><strong>Peak Memory:</strong> ' . number_format(memory_get_peak_usage()) . ' bytes</p>';
     $this->_paintLinks();
     if (isset($this->params['codeCoverage']) && $this->params['codeCoverage']) {
         $coverage = $result->getCodeCoverage();
         if (method_exists($coverage, 'getSummary')) {
             $report = $coverage->getSummary();
             $this->paintCoverage($report);
         }
         if (method_exists($coverage, 'getData')) {
             $report = $coverage->getData();
             $this->paintCoverage($report);
         }
     }
     $this->paintDocumentEnd();
 }
All Usage Examples Of PHPUnit_Framework_TestResult::skippedCount