Skip to content

Commit

Permalink
Use "suite" or "suites" instead of "suite(s)"
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 29, 2024
1 parent 7bdbad5 commit 06b11a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/TextUI/Command/Commands/ListTestSuitesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public function execute(): Result
ksort($suites);

$buffer = $this->warnAboutConflictingOptions();
$buffer .= 'Available test suite(s):' . PHP_EOL;

$buffer .= sprintf(
'Available test suite%s:' . PHP_EOL,
count($suites) > 1 ? 's' : '',
);

foreach ($suites as $suite => $numberOfTests) {
$buffer .= sprintf(
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/cli/list-suites.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ require_once __DIR__ . '/../../bootstrap.php';
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Available test suite(s):
Available test suites:
- end-to-end (1 test)
- unit (1 test)

0 comments on commit 06b11a1

Please sign in to comment.