*/ private const HELP_MESSAGES = [ 'Pest Options:', ' --init Initialise a standard Pest configuration', ' --coverage Enable coverage and output to standard output', ' --min= Set the minimum required coverage percentage (), and fail if not met', ' --group= Only runs tests from the specified group(s)', ]; /** @var OutputInterface */ private $output; public function __construct(OutputInterface $output) { $this->output = $output; } public function __invoke(): void { foreach (self::HELP_MESSAGES as $message) { $this->output->writeln($message); } } }