/**
  * Finds the PHP executable.
  *
  * @return string
  * @throws FileNotFoundException
  */
 protected function getPhp()
 {
     $phpFinder = new PhpExecutableFinder();
     $phpPath = $phpFinder->find();
     if (!$phpPath) {
         throw new FileNotFoundException('The PHP executable could not be found.');
     }
     return $phpPath;
 }
 /**
  * @return null|string
  */
 protected function checkCliRequirements()
 {
     $finder = new PhpExecutableFinder();
     $command = sprintf('%s %schamilo-check.php', $finder->find(), __DIR__ . DIRECTORY_SEPARATOR);
     return shell_exec($command);
 }