exec([ResolveUrlCommand::NAME, 'abc123']); self::assertStringContainsString('Long URL: https://shlink.io', $originalOutput); [, $exitCode] = $this->exec([EditShortUrlCommand::NAME, 'abc123', '--long-url', 'https://example.com']); self::assertEquals(Command::SUCCESS, $exitCode); [$newOutput] = $this->exec([ResolveUrlCommand::NAME, 'abc123']); self::assertStringContainsString('Long URL: https://example.com', $newOutput); } }