Documentation

PHPUnit_Util_TestSuiteIterator
in package
implements RecursiveIterator

Iterator for test suites.

Tags
since

Class available since Release 3.1.0

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

Methods

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
Return values
bool

Search results