exec( [CreateShortUrlCommand::NAME, 'https://example.com', '--domain', $defaultDomain, '--custom-slug', $slug], ); self::assertEquals(ExitCodes::EXIT_SUCCESS, $exitCode); self::assertStringContainsString('Generated short URL: http://' . $defaultDomain . '/' . $slug, $output); [$listOutput] = $this->exec([ListShortUrlsCommand::NAME, '--show-domain', '--search-term', $slug]); self::assertStringContainsString('DEFAULT', $listOutput); } }