Skip to content

Commit 293bd6b

Browse files
mondrakesebastianbergmann
authored andcommitted
fix ListGroupsCommand and more phpt fies
1 parent b7d1429 commit 293bd6b

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

src/TextUI/Command/Commands/ListGroupsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ public function execute(): Result
7070
);
7171

7272
foreach ($groups as $group => $numberOfTests) {
73-
if (str_starts_with($group, '__phpunit_')) {
73+
if (str_starts_with((string) $group, '__phpunit_')) {
7474
continue;
7575
}
7676

7777
$buffer .= sprintf(
7878
' - %s (%d test%s)' . PHP_EOL,
79-
$group,
79+
(string) $group,
8080
$numberOfTests,
8181
$numberOfTests > 1 ? 's' : '',
8282
);

tests/end-to-end/cli/listing-tests-and-groups/list-groups-exclude-filter.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
1515
--EXPECTF--
1616
PHPUnit %s by Sebastian Bergmann and contributors.
1717

18-
Available test group:
18+
Available test groups:
19+
- 3 (1 test)
1920
- two (1 test)

tests/end-to-end/cli/listing-tests-and-groups/list-groups-exclude-group.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
1616
PHPUnit %s by Sebastian Bergmann and contributors.
1717

1818
Available test groups:
19+
- 3 (1 test)
1920
- default (1 test)
2021
- two (1 test)

tests/end-to-end/cli/listing-tests-and-groups/list-groups-include-filter.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
1515
--EXPECTF--
1616
PHPUnit %s by Sebastian Bergmann and contributors.
1717

18-
Available test group:
18+
Available test groups:
19+
- 3 (1 test)
1920
- two (1 test)

tests/end-to-end/cli/listing-tests-and-groups/list-groups.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ require_once __DIR__ . '/../../../bootstrap.php';
1414
PHPUnit %s by Sebastian Bergmann and contributors.
1515

1616
Available test groups:
17+
- 3 (1 test)
1718
- default (1 test)
1819
- one (1 test)
1920
- two (1 test)

tests/end-to-end/cli/listing-tests-and-groups/list-tests-exclude-filter.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
1515
--EXPECTF--
1616
PHPUnit %s by Sebastian Bergmann and contributors.
1717

18-
Available test:
18+
Available tests:
1919
- PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo
2020
- PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testThree

0 commit comments

Comments
 (0)