/**
  * Constructs a configured Process instance
  *
  * @param string       $targets space separated list of targets
  * @param PhingOptions $options
  *
  * @return Process
  */
 private function createProcessInstance($targets, PhingOptions $options)
 {
     $builder = new ProcessBuilder();
     $builder->setPrefix($this->options->getPhingBin());
     $builder->setArguments($options->toArgumentsArray());
     foreach (explode(' ', $targets) as $target) {
         if (strlen(trim($target))) {
             $builder->add(trim($target));
         }
     }
     return $builder->getProcess();
 }
 public function testGetPhingBinDefault()
 {
     $options = new ServiceOptions();
     $this->assertEquals('./vendor/bin/phing', $options->getPhingBin());
 }