PHPUnit_Framework_TestResult::noneSkipped PHP Method

noneSkipped() public method

Returns true if no test has been skipped.
public noneSkipped ( ) : boolean
return boolean
    public function noneSkipped()
    {
        return $this->skippedCount() == 0;
    }

Usage Example

Beispiel #1
0
 /**
  * @param  PHPUnit_Framework_TestResult  $result
  * @access protected
  */
 protected function printFooter(PHPUnit_Framework_TestResult $result)
 {
     if ($result->wasSuccessful() && $result->allCompletlyImplemented() && $result->noneSkipped()) {
         $this->write("\n" . ($result = sprintf("OK (%d test%s, %d assertion%s)", count($result), count($result) == 1 ? '' : 's', $this->numAssertions, $this->numAssertions == 1 ? '' : 's')) . str_repeat(' ', 80 - strlen($result)) . "\n");
     } elseif ((!$result->allCompletlyImplemented() || !$result->noneSkipped()) && $result->wasSuccessful()) {
         $this->write("\nOk, but incomplete or skipped tests!                                            \n" . sprintf("Tests: %d, Assertions: %d%s%s.\n", count($result), $this->numAssertions, $this->getCountString($result->notImplementedCount(), 'Incomplete'), $this->getCountString($result->skippedCount(), 'Skipped')));
     } else {
         $this->write(sprintf("\nFailures                                                                        \n" . "Tests: %d, Assertions: %s%s%s%s.\n", count($result), $this->numAssertions, $this->getCountString($result->failureCount(), 'Failures'), $this->getCountString($result->errorCount(), 'Errors'), $this->getCountString($result->notImplementedCount(), 'Incomplete'), $this->getCountString($result->skippedCount(), 'Skipped')));
     }
 }
All Usage Examples Of PHPUnit_Framework_TestResult::noneSkipped