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

Breadcrumb

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

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\Command

Code

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);
}
RSS feed
Powered by Drupal