Skip to content

Commit 398aafc

Browse files
Make these tests work on Windows
1 parent e1e1fd0 commit 398aafc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/unit/TextUI/Command/Commands/VersionCheckCommandTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
namespace PHPUnit\TextUI\Command;
1111

12-
use function trim;
12+
use const PHP_EOL;
1313
use PHPUnit\Framework\Attributes\CoversClass;
1414
use PHPUnit\Framework\Attributes\DataProvider;
1515
use PHPUnit\Framework\Attributes\Small;
@@ -28,25 +28,25 @@ public static function provider(): array
2828
{
2929
return [
3030
[
31-
'You are using the latest version of PHPUnit.',
31+
'You are using the latest version of PHPUnit.' . PHP_EOL,
3232
10,
3333
'10.5.0',
3434
'10.5.0',
3535
'10.5.0',
3636
],
3737
[
38-
'You are not using the latest version of PHPUnit.
39-
The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.
40-
The latest version is PHPUnit 10.5.1.',
38+
'You are not using the latest version of PHPUnit.' . PHP_EOL .
39+
'The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.' . PHP_EOL .
40+
'The latest version is PHPUnit 10.5.1.' . PHP_EOL,
4141
10,
4242
'10.5.0',
4343
'10.5.1',
4444
'10.5.1',
4545
],
4646
[
47-
'You are not using the latest version of PHPUnit.
48-
The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.
49-
The latest version is PHPUnit 11.0.0.',
47+
'You are not using the latest version of PHPUnit.' . PHP_EOL .
48+
'The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.' . PHP_EOL .
49+
'The latest version is PHPUnit 11.0.0.' . PHP_EOL,
5050
10,
5151
'10.5.0',
5252
'11.0.0',

0 commit comments

Comments
 (0)