You are here

public function PHPUnit_Framework_TestSuite::testAt in Zircon Profile 8

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

Returns the test at the given index.

Parameters

int:

Return value

PHPUnit_Framework_Test

File

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

Class

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

Code

public function testAt($index) {
  if (isset($this->tests[$index])) {
    return $this->tests[$index];
  }
  else {
    return false;
  }
}