class PHPUnit_Util_TestSuiteIterator implements RecursiveIterator (View source)

Iterator for test suites.

Properties

protected int $position
protected PHPUnit_Framework_Test[] $tests

Methods

__construct(PHPUnit_Framework_TestSuite $testSuite)

No description

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

__construct(PHPUnit_Framework_TestSuite $testSuite)

Parameters

PHPUnit_Framework_TestSuite $testSuite

rewind()

Rewinds the Iterator to the first element.

bool valid()

Checks if there is a current element after calls to rewind() or next().

Return Value

bool

int key()

Returns the key of the current element.

Return Value

int

PHPUnit_Framework_Test current()

Returns the current element.

Return Value

PHPUnit_Framework_Test

next()

Moves forward to next element.

PHPUnit_Util_TestSuiteIterator getChildren()

Returns the sub iterator for the current element.

bool hasChildren()

Checks whether the current element has children.

Return Value

bool