Lggr
Public Member Functions | Protected Attributes | List of all members
PHPUnit\Framework\TestSuiteIterator Class Reference
Inheritance diagram for PHPUnit\Framework\TestSuiteIterator:
Inheritance graph
[legend]
Collaboration diagram for PHPUnit\Framework\TestSuiteIterator:
Collaboration graph
[legend]

Public Member Functions

 __construct (TestSuite $testSuite)
 
 rewind ()
 
 valid ()
 
 key ()
 
 current ()
 
 next ()
 
 getChildren ()
 
 hasChildren ()
 

Protected Attributes

 $position
 
 $tests
 

Detailed Description

Iterator for test suites.

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\TestSuiteIterator::__construct ( TestSuite  $testSuite)
Parameters
TestSuite$testSuite

Member Function Documentation

◆ current()

PHPUnit\Framework\TestSuiteIterator::current ( )

Returns the current element.

Returns
Test

◆ getChildren()

PHPUnit\Framework\TestSuiteIterator::getChildren ( )

Returns the sub iterator for the current element.

Returns
TestSuiteIterator

◆ hasChildren()

PHPUnit\Framework\TestSuiteIterator::hasChildren ( )

Checks whether the current element has children.

Returns
bool

◆ key()

PHPUnit\Framework\TestSuiteIterator::key ( )

Returns the key of the current element.

Returns
int

◆ next()

PHPUnit\Framework\TestSuiteIterator::next ( )

Moves forward to next element.

◆ rewind()

PHPUnit\Framework\TestSuiteIterator::rewind ( )

Rewinds the Iterator to the first element.

◆ valid()

PHPUnit\Framework\TestSuiteIterator::valid ( )

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

Returns
bool

The documentation for this class was generated from the following file: