function ListGroupsCommand::execute
Overrides Command::execute
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Command/ Commands/ ListGroupsCommand.php, line 33
Class
- ListGroupsCommand
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\CommandCode
public function execute() : Result {
$buffer = $this->warnAboutConflictingOptions();
$buffer .= 'Available test group(s):' . PHP_EOL;
$groups = $this->suite
->groups();
sort($groups);
foreach ($groups as $group) {
if (str_starts_with($group, '__phpunit_')) {
continue;
}
$buffer .= sprintf(' - %s' . PHP_EOL, $group);
}
return Result::from($buffer);
}