/**
  * Resolve future with execution result
  *
  * @param ExecutionResult $executionResult
  */
 public function resolve($executionResult)
 {
     $executionResult = $this->command->prepareExecutionResult($executionResult);
     $this->result = $executionResult;
     $this->executed = true;
 }
 public function testDontCheckRunning()
 {
     $cmd = new Command('bash "' . __DIR__ . '/../infinite_cat.sh"');
     $cmd->setStdin("hello world");
     $cmd->setDontCheckRunning(true);
     $cmd->runBlocking();
     $this->assertTrue($cmd->hasExecutionResult());
     $this->assertNotNull($cmd->getExecutionResult());
     $this->assertEquals($cmd->getExecutionResult()->getStderr(), '');
     $this->assertEquals($cmd->getExecutionResult()->getStdout(), 'hello world');
 }