2020
2121use Composer \Command \BaseCommand ;
2222use FastForward \DevTools \Composer \Capability \DevToolsCommandProvider ;
23- use FastForward \DevTools \Console \Command \CodeStyleCommand ;
2423use FastForward \DevTools \Console \DevTools ;
2524use PHPUnit \Framework \Attributes \CoversClass ;
2625use PHPUnit \Framework \Attributes \Test ;
3130use Psr \Container \ContainerInterface ;
3231use ReflectionProperty ;
3332use Symfony \Component \Console \Command \Command ;
34- use Symfony \Component \Console \CommandLoader \CommandLoaderInterface ;
35- use Symfony \Component \Filesystem \Filesystem ;
3633
3734#[CoversClass(DevToolsCommandProvider::class)]
3835#[UsesClass(DevTools::class)]
@@ -41,6 +38,7 @@ final class DevToolsCommandProviderTest extends TestCase
4138 use ProphecyTrait;
4239
4340 private ObjectProphecy $ container ;
41+
4442 private ObjectProphecy $ devTools ;
4543
4644 private DevToolsCommandProvider $ commandProvider ;
@@ -57,14 +55,18 @@ protected function setUp(): void
5755 ->willReturn ($ this ->devTools ->reveal ())
5856 ->shouldBeCalledOnce ();
5957
60- $ this ->devTools ->all ()->willReturn ([])->shouldBeCalledOnce ();
58+ $ this ->devTools ->all ()
59+ ->willReturn ([])->shouldBeCalledOnce ();
6160
6261 $ this ->commandProvider = new DevToolsCommandProvider ();
6362
6463 $ property = new ReflectionProperty (DevTools::class, 'container ' );
6564 $ property ->setValue (null , $ this ->container ->reveal ());
6665 }
6766
67+ /**
68+ * @return void
69+ */
6870 #[Test]
6971 public function getCommandsWillReturnEmptyArrayWhenNoCommandsAreRegistered (): void
7072 {
@@ -74,16 +76,17 @@ public function getCommandsWillReturnEmptyArrayWhenNoCommandsAreRegistered(): vo
7476 self ::assertEmpty ($ commands );
7577 }
7678
79+ /**
80+ * @return void
81+ */
7782 #[Test]
7883 public function getCommandsWillReturnRegisteredBaseCommands (): void
7984 {
8085 $ composerCommand = $ this ->prophesize (BaseCommand::class)->reveal ();
8186 $ symfonyCommand = $ this ->prophesize (Command::class)->reveal ();
8287
83- $ this ->devTools ->all ()->willReturn ([
84- $ composerCommand ,
85- $ symfonyCommand ,
86- ])->shouldBeCalledOnce ();
88+ $ this ->devTools ->all ()
89+ ->willReturn ([$ composerCommand , $ symfonyCommand ])->shouldBeCalledOnce ();
8790
8891 $ commands = $ this ->commandProvider ->getCommands ();
8992
0 commit comments