You are here

public function PHPUnit_Framework_TestSuite::getIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestSuite.php \PHPUnit_Framework_TestSuite::getIterator()

Returns an iterator for this test suite.

@since Method available since Release 3.1.0

Return value

RecursiveIteratorIterator

File

vendor/phpunit/phpunit/src/Framework/TestSuite.php, line 967

Class

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

Code

public function getIterator() {
  $iterator = new PHPUnit_Util_TestSuiteIterator($this);
  if ($this->iteratorFilter !== null) {
    $iterator = $this->iteratorFilter
      ->factory($iterator, $this);
  }
  return $iterator;
}