33namespace PHPStan \Command \ErrorFormatter ;
44
55use PHPStan \Testing \ErrorFormatterTestCase ;
6+ use const PHP_EOL ;
67
78class RawErrorFormatterTest extends ErrorFormatterTestCase
89{
@@ -22,53 +23,48 @@ public function dataFormatterOutputProvider(): iterable
2223 1 ,
2324 1 ,
2425 0 ,
25- '/data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:4:Foo
26- ' ,
26+ '/data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:4:Foo ' . PHP_EOL ,
2727 ];
2828
2929 yield [
3030 'One generic error ' ,
3131 1 ,
3232 0 ,
3333 1 ,
34- '?:?:first generic error
35- ' ,
34+ '?:?:first generic error ' . PHP_EOL ,
3635 ];
3736
3837 yield [
3938 'Multiple file errors ' ,
4039 1 ,
4140 4 ,
4241 0 ,
43- '/data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:2:Bar
44- /data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:4:Foo
45- /data/folder/with space/and unicode 😃/project/foo.php:1:Foo
46- /data/folder/with space/and unicode 😃/project/foo.php:5:Bar
47- ' ,
42+ '/data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:2:Bar ' . PHP_EOL .
43+ '/data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:4:Foo ' . PHP_EOL .
44+ '/data/folder/with space/and unicode 😃/project/foo.php:1:Foo ' . PHP_EOL .
45+ '/data/folder/with space/and unicode 😃/project/foo.php:5:Bar ' . PHP_EOL ,
4846 ];
4947
5048 yield [
5149 'Multiple generic errors ' ,
5250 1 ,
5351 0 ,
5452 2 ,
55- '?:?:first generic error
56- ?:?:second generic error
57- ' ,
53+ '?:?:first generic error ' . PHP_EOL .
54+ '?:?:second generic error ' . PHP_EOL ,
5855 ];
5956
6057 yield [
6158 'Multiple file, multiple generic errors ' ,
6259 1 ,
6360 4 ,
6461 2 ,
65- '?:?:first generic error
66- ?:?:second generic error
67- /data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:2:Bar
68- /data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:4:Foo
69- /data/folder/with space/and unicode 😃/project/foo.php:1:Foo
70- /data/folder/with space/and unicode 😃/project/foo.php:5:Bar
71- ' ,
62+ '?:?:first generic error ' . PHP_EOL .
63+ '?:?:second generic error ' . PHP_EOL .
64+ '/data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:2:Bar ' . PHP_EOL .
65+ '/data/folder/with space/and unicode 😃/project/folder with unicode 😃/file name with "spaces" and unicode 😃.php:4:Foo ' . PHP_EOL .
66+ '/data/folder/with space/and unicode 😃/project/foo.php:1:Foo ' . PHP_EOL .
67+ '/data/folder/with space/and unicode 😃/project/foo.php:5:Bar ' . PHP_EOL ,
7268 ];
7369 }
7470
0 commit comments