/** * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * * @throws \Exception */ protected function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); if (!Docker::exists()) { $this->stdOut->writeln("<error>Cannot find docker command</error>"); exit(1); } if (!Compose::exists()) { $this->stdOut->writeln("<error>Cannot find docker-compose command</error>"); exit(1); } // For Mac OS X we need to ensure a Docker VM is running. if (!Docker::native()) { $this->validateNonNative(); } else { $this->validateNative(); } }
public function testExists() { $this->assertTrue(Docker::exists()); }