public function PHPUnit_Framework_TestSuite::count

Counts the number of test cases that will be run by this test.

Return value

integer

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php, line 425

Class

PHPUnit_Framework_TestSuite
A TestSuite is a composite of Tests. It runs a collection of test cases.

Code

public function count() {
  if ($this->numTests > -1) {
    return $this->numTests;
  }
  $this->numTests = 0;
  foreach ($this->tests as $test) {
    $this->numTests += count($test);
  }
  return $this->numTests;
}