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

Breadcrumb

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

function TestSuite::count

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Event/Value/TestSuite/TestSuite.php \PHPUnit\Event\TestSuite\TestSuite::count()

Counts the number of test cases that will be run by this test.

File

vendor/phpunit/phpunit/src/Framework/TestSuite.php, line 276

Class

TestSuite
@template-implements IteratorAggregate<int, Test>

Namespace

PHPUnit\Framework

Code

public function count() : int {
    $numTests = 0;
    foreach ($this as $test) {
        $numTests += count($test);
    }
    return $numTests;
}

API Navigation

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