PHPUnit_Util_TestSuiteIterator
in package
implements
RecursiveIterator
Iterator for test suites.
Tags
Interfaces, Classes and Traits
- RecursiveIterator
Table of Contents
- $position : int
- $tests : array<string|int, PHPUnit_Framework_Test>
- __construct() : mixed
- current() : PHPUnit_Framework_Test
- Returns the current element.
- getChildren() : PHPUnit_Util_TestSuiteIterator
- Returns the sub iterator for the current element.
- hasChildren() : bool
- Checks whether the current element has children.
- key() : int
- Returns the key of the current element.
- next() : mixed
- Moves forward to next element.
- rewind() : mixed
- Rewinds the Iterator to the first element.
- valid() : bool
- Checks if there is a current element after calls to rewind() or next().
Properties
$position
protected
int
$position
$tests
protected
array<string|int, PHPUnit_Framework_Test>
$tests
Methods
__construct()
public
__construct(PHPUnit_Framework_TestSuite $testSuite) : mixed
Parameters
- $testSuite : PHPUnit_Framework_TestSuite
Return values
mixed —current()
Returns the current element.
public
current() : PHPUnit_Framework_Test
Return values
PHPUnit_Framework_Test —getChildren()
Returns the sub iterator for the current element.
public
getChildren() : PHPUnit_Util_TestSuiteIterator
Return values
PHPUnit_Util_TestSuiteIterator —hasChildren()
Checks whether the current element has children.
public
hasChildren() : bool
Return values
bool —key()
Returns the key of the current element.
public
key() : int
Return values
int —next()
Moves forward to next element.
public
next() : mixed
Return values
mixed —rewind()
Rewinds the Iterator to the first element.
public
rewind() : mixed
Return values
mixed —valid()
Checks if there is a current element after calls to rewind() or next().
public
valid() : bool