|
26 | 26 | use FastForward\DevTools\Container\ContainerFactory; |
27 | 27 | use FastForward\DevTools\Container\ServiceProvider\DevToolsServiceProvider; |
28 | 28 | use FastForward\DevTools\Path\DevToolsPathResolver; |
| 29 | +use FastForward\DevTools\Console\Output\GithubActionOutput; |
29 | 30 | use PHPUnit\Framework\Attributes\CoversClass; |
30 | 31 | use PHPUnit\Framework\Attributes\Test; |
31 | 32 | use PHPUnit\Framework\Attributes\UsesClass; |
|
34 | 35 | use Prophecy\Prophecy\ObjectProphecy; |
35 | 36 | use stdClass; |
36 | 37 |
|
| 38 | +#[UsesClass(GithubActionOutput::class)] |
37 | 39 | #[CoversClass(DevToolsCommandProvider::class)] |
38 | 40 | #[UsesClass(ContainerFactory::class)] |
39 | 41 | #[UsesClass(DevToolsPathResolver::class)] |
@@ -92,8 +94,7 @@ protected function setUp(): void |
92 | 94 | ContainerFactory::set('FastForward\DevTools\Console\DevTools', new class ($this->applicationState) { |
93 | 95 | public function __construct( |
94 | 96 | private readonly stdClass $state, |
95 | | - ) { |
96 | | - } |
| 97 | + ) {} |
97 | 98 |
|
98 | 99 | /** |
99 | 100 | * @return array<string, FixtureWithoutAsCommand> |
@@ -137,7 +138,9 @@ public function getCommandsWillReturnComposerProxyCommandsForRegisteredSymfonyCo |
137 | 138 | $symfonyCommand->setHelp(''); |
138 | 139 | $symfonyCommand->setHidden(false); |
139 | 140 |
|
140 | | - $this->applicationCommands = ['agents' => $symfonyCommand]; |
| 141 | + $this->applicationCommands = [ |
| 142 | + 'agents' => $symfonyCommand, |
| 143 | + ]; |
141 | 144 |
|
142 | 145 | $commands = array_values($this->commandProvider->getCommands()); |
143 | 146 | $command = $commands[0]; |
@@ -234,7 +237,9 @@ public function getCommandsWillNotExposeCommandsOwnedByComposer(): void |
234 | 237 | $symfonyCommand->setHelp(''); |
235 | 238 | $symfonyCommand->setHidden(false); |
236 | 239 |
|
237 | | - $this->applicationCommands = ['install' => $symfonyCommand]; |
| 240 | + $this->applicationCommands = [ |
| 241 | + 'install' => $symfonyCommand, |
| 242 | + ]; |
238 | 243 |
|
239 | 244 | self::assertSame([], $this->commandProvider->getCommands()); |
240 | 245 | } |
|
0 commit comments