function let(Mirror $mirror) { $mirror->getSupportedUtilities()->willReturn([]); $this->beConstructedWith('mirror', $mirror); }
protected function configure() { $this->setName(self::NAME)->setDescription('Stream a sequence of desktop screenshots to an Apple TV device.')->addArgument(self::HOST_ARGUMENT, InputArgument::REQUIRED, 'The IP address of the Apple TV')->addOption(self::UTILITY_OPTION, 'u', InputOption::VALUE_REQUIRED, sprintf('The utility for capturing the desktop as an image. One of [%s]', implode('|', $this->mirror->getSupportedUtilities()))); }