/var/www/vhosts/nabawater/vendor/phpunit/phpunit/src/Util
NameSizeModeActions
Log/-0775rm
PHP/-0775rm
TestDox/-0775rm
Blacklist.php34420664editdlrm
Configuration.php348890664editdlrm
ConfigurationGenerator.php18770664editdlrm
ErrorHandler.php34040664editdlrm
Fileloader.php16540664editdlrm
Filesystem.php8000664editdlrm
Filter.php29070664editdlrm
Getopt.php46430664editdlrm
GlobalState.php54340664editdlrm
InvalidArgumentHelper.php10580664editdlrm
PHP.php106860664editdlrm
Printer.php34020664editdlrm
Regex.php8810664editdlrm
String.php13890664editdlrm
Test.php354180664editdlrm
TestSuiteIterator.php19940664editdlrm
Type.php8400664editdlrm
XML.php73330664editdlrm
Edit: /var/www/vhosts/nabawater/vendor/phpunit/phpunit/src/Util/TestSuiteIterator.php (1994B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Iterator for test suites. */ class PHPUnit_Util_TestSuiteIterator implements RecursiveIterator { /** * @var int */ protected $position; /** * @var PHPUnit_Framework_Test[] */ protected $tests; /** * @param PHPUnit_Framework_TestSuite $testSuite */ public function __construct(PHPUnit_Framework_TestSuite $testSuite) { $this->tests = $testSuite->tests(); } /** * Rewinds the Iterator to the first element. */ public function rewind() { $this->position = 0; } /** * Checks if there is a current element after calls to rewind() or next(). * * @return bool */ public function valid() { return $this->position < count($this->tests); } /** * Returns the key of the current element. * * @return int */ public function key() { return $this->position; } /** * Returns the current element. * * @return PHPUnit_Framework_Test */ public function current() { return $this->valid() ? $this->tests[$this->position] : null; } /** * Moves forward to next element. */ public function next() { $this->position++; } /** * Returns the sub iterator for the current element. * * @return PHPUnit_Util_TestSuiteIterator */ public function getChildren() { return new self( $this->tests[$this->position] ); } /** * Checks whether the current element has children. * * @return bool */ public function hasChildren() { return $this->tests[$this->position] instanceof PHPUnit_Framework_TestSuite; } }