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

Breadcrumb

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

function TestSuite::provides

@psalm-return list<ExecutionOrderDependency>

Overrides Reorderable::provides

1 call to TestSuite::provides()
TestSuite::requires in vendor/phpunit/phpunit/src/Framework/TestSuite.php
@psalm-return list<ExecutionOrderDependency>
1 method overrides TestSuite::provides()
DataProviderTestSuite::provides in vendor/phpunit/phpunit/src/Framework/DataProviderTestSuite.php
@psalm-return list<ExecutionOrderDependency>

File

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

Class

TestSuite
@template-implements IteratorAggregate<int, Test>

Namespace

PHPUnit\Framework

Code

public function provides() : array {
    if ($this->providedTests === null) {
        $this->providedTests = [];
        if (is_callable($this->sortId(), true)) {
            $this->providedTests[] = new ExecutionOrderDependency($this->sortId());
        }
        foreach ($this->tests as $test) {
            if (!$test instanceof Reorderable) {
                continue;
            }
            $this->providedTests = ExecutionOrderDependency::mergeUnique($this->providedTests, $test->provides());
        }
    }
    return $this->providedTests;
}
RSS feed
Powered by Drupal