@@ -17,15 +17,15 @@ final class RectorTest extends TestCase
1717 public static function outputProvider (): Iterator
1818 {
1919 yield 'Version ' => [
20- 'command ' => PHP_BINARY . ' bin/rector --version ' ,
21- 'expectedOutput ' => " Rector @package_version@ " . PHP_EOL ,
20+ 'command ' => PHP_BINARY . ' bin/rector --version ' ,
21+ 'expectedOutput ' => ' Rector @package_version@ ' . PHP_EOL ,
2222 ];
2323 yield 'Exception with previous console output ' => [
24- 'command ' => PHP_BINARY . ' bin/rector -c tests/Bin/config/incorrect-phpstan-files.php ' ,
25- 'expectedOutput ' => PHP_EOL . " [ERROR] Rector \\NodeTypeResolver \\DependencyInjection \\PHPStanServicesFactory " . PHP_EOL . PHP_EOL . " [ERROR] Unexpected item 'parameters › invalidParameters'. " . PHP_EOL . PHP_EOL ,
24+ 'command ' => PHP_BINARY . ' bin/rector -c tests/Bin/config/incorrect-phpstan-files.php ' ,
25+ 'expectedOutput ' => PHP_EOL . ' [ERROR] Rector \\NodeTypeResolver \\DependencyInjection \\PHPStanServicesFactory ' . PHP_EOL . PHP_EOL . " [ERROR] Unexpected item 'parameters › invalidParameters'. " . PHP_EOL . PHP_EOL ,
2626 ];
2727 yield 'Exception with previous console output in JSON format ' => [
28- 'command ' => PHP_BINARY . ' bin/rector -c tests/Bin/config/incorrect-phpstan-files.php --output-format json ' ,
28+ 'command ' => PHP_BINARY . ' bin/rector -c tests/Bin/config/incorrect-phpstan-files.php --output-format json ' ,
2929 'expectedOutput ' => '{"fatal_errors":["Rector \\\\NodeTypeResolver \\\\DependencyInjection \\\\PHPStanServicesFactory","Unexpected item \'parameters › invalidParameters \'."]} ' ,
3030 ];
3131 }
@@ -35,6 +35,6 @@ public function testConsoleOutput(string $command, string $expectedOutput): void
3535 {
3636 $ process = Process ::fromShellCommandline ($ command );
3737 $ process ->run ();
38- $ this ->assertSame ($ expectedOutput , preg_replace (" / +/ " , " " , $ process ->getOutput ()));
38+ $ this ->assertSame ($ expectedOutput , preg_replace (' / +/ ' , ' ' , $ process ->getOutput ()));
3939 }
4040}
0 commit comments