File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 66
77use PhpCsFixerCustomFixersDev \Readme \ReadmeCommand ;
88use PHPUnit \Framework \TestCase ;
9- use Symfony \Component \Console \Application ;
10- use Symfony \Component \Console \Tester \ApplicationTester ;
9+ use Symfony \Component \Console \Tester \CommandTester ;
1110
1211/**
1312 * @internal
@@ -18,17 +17,9 @@ final class ReadmeCommandTest extends TestCase
1817{
1918 public function testReadmeIsUpToDate (): void
2019 {
21- $ application = new Application ();
22- $ command = new ReadmeCommand ('readme ' );
20+ $ tester = new CommandTester (new ReadmeCommand ());
2321
24- $ application ->add ($ command );
25- $ application ->setDefaultCommand ($ command ->getName (), true );
26- $ application ->setAutoExit (false );
27- $ application ->setCatchExceptions (false );
28-
29- $ tester = new ApplicationTester ($ application );
30-
31- $ tester ->run ([]);
22+ $ tester ->execute ([]);
3223
3324 static ::assertStringEqualsFile (
3425 __DIR__ . '/../../README.md ' ,
You can’t perform that action at this time.
0 commit comments