exec([CreateKeyCommand::NAME]); self::assertStringContainsString('[OK] Generated API key', $output); self::assertEquals(ExitCode::EXIT_SUCCESS, $exitCode); } #[Test] public function allowsCustomKeyToBeProvided(): void { [$output, $exitCode] = $this->exec([CreateKeyCommand::NAME, 'custom_api_key']); self::assertStringContainsString('[OK] Generated API key: "custom_api_key"', $output); self::assertEquals(ExitCode::EXIT_SUCCESS, $exitCode); } }