class TestSuiteIterator implements RecursiveIterator (View source)

Iterator for test suites.

Properties

protected int $position
protected Test[] $tests

Methods

__construct(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(TestSuite $testSuite)

Parameters

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

Test current()

Returns the current element.

Return Value

Test

next()

Moves forward to next element.

TestSuiteIterator getChildren()

Returns the sub iterator for the current element.

Return Value

TestSuiteIterator

bool hasChildren()

Checks whether the current element has children.

Return Value

bool