@@ -33,7 +33,6 @@ protected function getMakerClass(): string
3333 public function getTestDetails (): \Generator
3434 {
3535 yield 'lints_templates_with_custom_php_cs_fixer_and_config ' => [$ this ->createMakerTest ()
36- ->addExtraDependencies ('php-cs-fixer/shim ' )
3736 ->run (function (MakerTestRunner $ runner ) {
3837 $ runner ->copy ('template-linter/php-cs-fixer.test.php ' , 'php-cs-fixer.test.php ' );
3938
@@ -53,13 +52,12 @@ public function getTestDetails(): \Generator
5352
5453 self ::assertStringContainsString ('Linted by custom php-cs-config ' , $ generatedTemplate );
5554
56- $ expectedOutput = 'System PHP-CS-Fixer (bin/php-cs-fixer) & System PHP-CS-Fixer Configuration (php-cs-fixer.test.php) ' ;
55+ $ expectedOutput = 'System PHP-CS-Fixer (bin/php-cs-fixer) & System PHP-CS-Fixer Configuration ' ;
5756 self ::assertStringContainsString ($ expectedOutput , $ output );
5857 }),
5958 ];
6059
6160 yield 'lints_templates_with_flex_generated_config_file ' => [$ this ->createMakerTest ()
62- ->addExtraDependencies ('php-cs-fixer/shim ' )
6361 ->run (function (MakerTestRunner $ runner ) {
6462 $ runner ->replaceInFile (
6563 '.php-cs-fixer.dist.php ' ,
@@ -79,13 +77,14 @@ public function getTestDetails(): \Generator
7977
8078 self ::assertStringContainsString ('Linted with stock php-cs-config ' , $ generatedTemplate );
8179
82- $ expectedOutput = 'Bundled PHP-CS-Fixer & System PHP-CS-Fixer Configuration (.php-cs-fixer.dist.php) ' ;
80+ $ expectedOutput = 'Bundled PHP-CS-Fixer & System PHP-CS-Fixer Configuration ' ;
8381 self ::assertStringContainsString ($ expectedOutput , $ output );
8482 }),
8583 ];
8684
8785 yield 'lints_templates_with_bundled_php_cs_fixer ' => [$ this ->createMakerTest ()
8886 ->run (function (MakerTestRunner $ runner ) {
87+ $ runner ->deleteFile ('.php-cs-fixer.dist.php ' );
8988 // Voter class name
9089 $ output = $ runner ->runMaker (['FooBar ' ]);
9190
0 commit comments