You are here

public function PHPUnit_Util_TestSuiteIterator::current in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/TestSuiteIterator.php \PHPUnit_Util_TestSuiteIterator::current()

Returns the current element.

Return value

PHPUnit_Framework_Test

File

vendor/phpunit/phpunit/src/Util/TestSuiteIterator.php, line 69

Class

PHPUnit_Util_TestSuiteIterator
Iterator for test suites.

Code

public function current() {
  return $this
    ->valid() ? $this->tests[$this->position] : null;
}