9
9
*/
10
10
namespace PHPUnit \TextUI \Command ;
11
11
12
- use function trim ;
12
+ use const PHP_EOL ;
13
13
use PHPUnit \Framework \Attributes \CoversClass ;
14
14
use PHPUnit \Framework \Attributes \DataProvider ;
15
15
use PHPUnit \Framework \Attributes \Small ;
@@ -28,27 +28,27 @@ public static function provider(): array
28
28
{
29
29
return [
30
30
[
31
- 'You are using the latest version of PHPUnit. ' ,
31
+ 'You are using the latest version of PHPUnit. ' . PHP_EOL ,
32
32
Result::SUCCESS ,
33
33
10 ,
34
34
'10.5.0 ' ,
35
35
'10.5.0 ' ,
36
36
'10.5.0 ' ,
37
37
],
38
38
[
39
- 'You are not using the latest version of PHPUnit.
40
- The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.
41
- The latest version is PHPUnit 10.5.1. ' ,
39
+ 'You are not using the latest version of PHPUnit. ' . PHP_EOL .
40
+ ' The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1. ' . PHP_EOL .
41
+ ' The latest version is PHPUnit 10.5.1. ' . PHP_EOL ,
42
42
Result::FAILURE ,
43
43
10 ,
44
44
'10.5.0 ' ,
45
45
'10.5.1 ' ,
46
46
'10.5.1 ' ,
47
47
],
48
48
[
49
- 'You are not using the latest version of PHPUnit.
50
- The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.
51
- The latest version is PHPUnit 11.0.0. ' ,
49
+ 'You are not using the latest version of PHPUnit. ' . PHP_EOL .
50
+ ' The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1. ' . PHP_EOL .
51
+ ' The latest version is PHPUnit 11.0.0. ' . PHP_EOL ,
52
52
Result::FAILURE ,
53
53
10 ,
54
54
'10.5.0 ' ,
@@ -77,7 +77,7 @@ public function testChecksVersion(string $expectedMessage, int $expectedShellExi
77
77
78
78
$ result = $ command ->execute ();
79
79
80
- $ this ->assertSame ($ expectedMessage , trim ( $ result ->output () ));
80
+ $ this ->assertSame ($ expectedMessage , $ result ->output ());
81
81
$ this ->assertSame ($ expectedShellExitCode , $ result ->shellExitCode ());
82
82
}
83
83
0 commit comments