コード例 #1
0
 function let(Mirror $mirror)
 {
     $mirror->getSupportedUtilities()->willReturn([]);
     $this->beConstructedWith('mirror', $mirror);
 }
コード例 #2
0
ファイル: MirrorCommand.php プロジェクト: archfizz/phpairplay
 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())));
 }