public function testCanOverrideArguments()
 {
     $command = new Command('ls');
     $command->addArgument(new Argument('test', 'value'));
     $command->addArgument(new Argument('test', 'value2'));
     $this->assertEquals("ls --test 'value2'", (string) $command, 'Arguments should be overwritten');
 }
 /**
  * @return bool
  */
 public function checkLibaryIsInstalled()
 {
     $shell = new Exec();
     $command = new Command($this->binaryPath);
     $command->addArgument(new Command\Argument('version'));
     $shell->run($command);
     if ($shell->getReturnValue() === 0) {
         return true;
     }
     return false;
 }