public function testResolve()
 {
     if (AbstractPaperworkCommand::isWindows()) {
         $this->assertFalse(AbstractPaperworkCommand::resolveExecutable('fadfadsfsa'));
         $this->assertEquals('C:\\Windows\\explorer.exe', AbstractPaperworkCommand::resolveExecutable('explorer'));
     } else {
         $this->assertFalse(AbstractPaperworkCommand::resolveExecutable('fadfadsfsa'));
         $this->assertEquals('/bin/bash', AbstractPaperworkCommand::resolveExecutable('bash'));
     }
 }
 /**
  * @return array
  */
 public static function checkRequiredCommands()
 {
     $commands_required = ['git', 'npm', 'composer'];
     $sufficient = true;
     foreach ($commands_required as $command) {
         $sufficient = AbstractPaperworkCommand::resolveExecutable($command) !== false;
         if (!$sufficient) {
             echo 'Required command not found: ' . $command . PHP_EOL;
             break;
         }
     }
     return $sufficient;
 }
 /**
  * Create a new command instance.
  */
 public function __construct()
 {
     parent::__construct();
 }