/**
  * Build process with command
  *
  * @param $command
  *
  * @return $this
  */
 public function setCommand($command)
 {
     // NOTE: Seems odd to have to add & then get, but the get(<class>, [$command]) does not work
     $this->generator->add('Symfony\\Component\\Process\\Process', function () use($command) {
         // @codeCoverageIgnoreStart
         return new Process($command);
         // @codeCoverageIgnoreEnd
     });
     $this->process = $this->generator->get('Symfony\\Component\\Process\\Process');
     // Allow chaining
     return $this;
 }
 /**
  * @test
  */
 public function it_sets_the_loader()
 {
     $loader_mock = TestFactory::mockClassLoader();
     $this->assertEquals($this->generator, $this->generator->setLoader($loader_mock));
     $this->assertInstanceOf('Composer\\Autoload\\ClassLoader', $this->generator->get('loader'));
 }