PHPUnit_Util_TestSuiteIterator
class PHPUnit_Util_TestSuiteIterator implements RecursiveIterator (View source)
Iterator for test suites.
Properties
protected int | $position | ||
protected PHPUnit_Framework_Test[] | $tests |
Methods
rewind()
Rewinds the Iterator to the first element.
bool
valid()
Checks if there is a current element after calls to rewind() or next().
int
key()
Returns the key of the current element.
current()
Returns the current element.
next()
Moves forward to next element.
getChildren()
Returns the sub iterator for the current element.
bool
hasChildren()
Checks whether the current element has children.
Details
at line 29
__construct(PHPUnit_Framework_TestSuite $testSuite)
at line 37
rewind()
Rewinds the Iterator to the first element.
at line 47
bool
valid()
Checks if there is a current element after calls to rewind() or next().
at line 57
int
key()
Returns the key of the current element.
at line 67
PHPUnit_Framework_Test
current()
Returns the current element.
at line 75
next()
Moves forward to next element.
at line 85
PHPUnit_Util_TestSuiteIterator
getChildren()
Returns the sub iterator for the current element.
at line 97
bool
hasChildren()
Checks whether the current element has children.