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\FrameworkCode
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;
}