- \PHPUnit_Util_TestSuiteIterator
class (none) \ PHPUnit_Util_TestSuiteIterator
- All implemented interfaces:
- RecursiveIterator
Iterator for test suites.
Method Summary
Name | Description |
---|---|
__construct(PHPUnit_Framework_TestSuite $testSuite) | |
current() | Returns the current element. |
getChildren() | Returns the sub iterator for the current element. |
hasChildren() | Checks whether the current element has children. |
key() | Returns the key of the current element. |
next() | Moves forward to next element. |
rewind() | Rewinds the Iterator to the first element. |
valid() | Checks if there is a current element after calls to rewind() or next(). |
public function __construct(PHPUnit_Framework_TestSuite $testSuite)
- Parameters:
PHPUnit_Framework_TestSuite
- $testSuite
public function current()
Returns the current element.
- Returns:
- PHPUnit_Framework_Test
public function getChildren()
Returns the sub iterator for the current element.
- Returns:
- PHPUnit_Util_TestSuiteIterator
public function hasChildren()
Checks whether the current element has children.
- Returns:
- boolean
public function key()
Returns the key of the current element.
- Returns:
- integer
public function next()
Moves forward to next element.
public function rewind()
Rewinds the Iterator to the first element.
public function valid()
Checks if there is a current element after calls to rewind() or next().
- Returns:
- boolean