Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestSuiteIterator.php

function TestSuiteIterator::getChildren

Throws

NoChildTestSuiteException

File

vendor/phpunit/phpunit/src/Framework/TestSuiteIterator.php, line 65

Class

TestSuiteIterator
@template-implements RecursiveIterator<int, Test>

Namespace

PHPUnit\Framework

Code

public function getChildren() : self {
    if (!$this->hasChildren()) {
        throw new NoChildTestSuiteException('The current item is not a TestSuite instance and therefore does not have any children.');
    }
    $current = $this->current();
    assert($current instanceof TestSuite);
    return new self($current);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal