function TestSuiteBuilder::process
@psalm-param list<Test> $tests
1 call to TestSuiteBuilder::process()
- TestSuiteBuilder::from in vendor/
phpunit/ phpunit/ src/ Event/ Value/ TestSuite/ TestSuiteBuilder.php
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ TestSuite/ TestSuiteBuilder.php, line 98
Class
- TestSuiteBuilder
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Event\TestSuiteCode
private static function process(FrameworkTestSuite $testSuite, array &$tests) : void {
foreach ($testSuite->getIterator() as $test) {
if ($test instanceof FrameworkTestSuite) {
self::process($test, $tests);
continue;
}
if ($test instanceof TestCase || $test instanceof PhptTestCase) {
$tests[] = $test->valueObjectForEvents();
}
}
}