Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jun 21, 2024
1 parent 035e5ba commit 50361b7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/TextUI/Configuration/Cli/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public function fromParameters(array $parameters): Configuration
case '--group':
if (str_contains($option[1], ',')) {
EventFacade::emitter()->testRunnerTriggeredWarning(
'Using comma-separated values with --group is deprecated and will no longer work in PHPUnit 12. You can use --group multiple times instead',
'Using comma-separated values with --group is deprecated and will no longer work in PHPUnit 12. You can use --group multiple times instead.',
);
}

Expand All @@ -451,7 +451,7 @@ public function fromParameters(array $parameters): Configuration
case '--exclude-group':
if (str_contains($option[1], ',')) {
EventFacade::emitter()->testRunnerTriggeredWarning(
'Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12. You can use --exclude-group multiple times instead',
'Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12. You can use --exclude-group multiple times instead.',
);
}

Expand All @@ -468,7 +468,7 @@ public function fromParameters(array $parameters): Configuration
case '--covers':
if (str_contains($option[1], ',')) {
EventFacade::emitter()->testRunnerTriggeredWarning(
'Using comma-separated values with --covers is deprecated and will no longer work in PHPUnit 12. You can use --covers multiple times instead',
'Using comma-separated values with --covers is deprecated and will no longer work in PHPUnit 12. You can use --covers multiple times instead.',
);
}

Expand All @@ -485,7 +485,7 @@ public function fromParameters(array $parameters): Configuration
case '--uses':
if (str_contains($option[1], ',')) {
EventFacade::emitter()->testRunnerTriggeredWarning(
'Using comma-separated values with --uses is deprecated and will no longer work in PHPUnit 12. You can use --uses multiple times instead',
'Using comma-separated values with --uses is deprecated and will no longer work in PHPUnit 12. You can use --uses multiple times instead.',
);
}

Expand All @@ -502,7 +502,7 @@ public function fromParameters(array $parameters): Configuration
case '--test-suffix':
if (str_contains($option[1], ',')) {
EventFacade::emitter()->testRunnerTriggeredWarning(
'Using comma-separated values with --test-suffix is deprecated and will no longer work in PHPUnit 12. You can use --test-suffix multiple times instead',
'Using comma-separated values with --test-suffix is deprecated and will no longer work in PHPUnit 12. You can use --test-suffix multiple times instead.',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/cli/group/exclude-group-argument-csv.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ print file_get_contents($traceFile);
unlink($traceFile);
--EXPECTF--
PHPUnit Started (PHPUnit %s using %s)
Test Runner Triggered Warning (Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12. You can use --exclude-group multiple times instead)
Test Runner Triggered Warning (Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12. You can use --exclude-group multiple times instead.)
Test Runner Configured
Test Suite Loaded (3 tests)
Event Facade Sealed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ print file_get_contents($traceFile);
unlink($traceFile);
--EXPECTF--
PHPUnit Started (PHPUnit %s using %s)
Test Runner Triggered Warning (Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12. You can use --exclude-group multiple times instead)
Test Runner Triggered Warning (Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12. You can use --exclude-group multiple times instead.)
Test Runner Configured
Test Suite Loaded (3 tests)
Event Facade Sealed
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/cli/group/size-groups-csv.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Runtime: %s

There were 7 PHPUnit test runner warnings:

1) Using comma-separated values with --group is deprecated and will no longer work in PHPUnit 12. You can use --group multiple times instead
1) Using comma-separated values with --group is deprecated and will no longer work in PHPUnit 12. You can use --group multiple times instead.

2) Group name "small" is not allowed for method PHPUnit\TestFixture\SizeGroups\SizeGroupsTest::testOne

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/generic/test-suffix-multiple-csv.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Time: %s, Memory: %s

There was 1 PHPUnit test runner warning:

1) Using comma-separated values with --test-suffix is deprecated and will no longer work in PHPUnit 12. You can use --test-suffix multiple times instead
1) Using comma-separated values with --test-suffix is deprecated and will no longer work in PHPUnit 12. You can use --test-suffix multiple times instead.

WARNINGS!
Tests: 5, Assertions: 5, Warnings: 1.

0 comments on commit 50361b7

Please sign in to comment.