exec([ListShortUrlsCommand::NAME, ...$flags], ['no']); self::assertStringContainsString($expectedOutput, $output); } public static function provideFlagsAndOutput(): iterable { // phpcs:disable Generic.Files.LineLength yield 'no flags' => [[], << [['--start-date=2019-01'], << [['-e 2018-12-01'], << [['-s 2018-06-20', '--end-date=2019-01-01T00:00:20+00:00'], << [['--exclude-max-visits-reached', '--exclude-past-valid-until'], <<