Exemplo n.º 1
0
 /**
  * Chain strategy to allow multiples ones
  *
  * @return ChainBuildStrategy
  */
 public function getChainStrategy()
 {
     $strategy = new ChainBuildStrategy();
     $strategy->pushStrategy($this->getTravisCiStrategy());
     $strategy->pushStrategy($this->getJoliCiStrategy());
     return $strategy;
 }
Exemplo n.º 2
0
 public function testNoJobsEmpty()
 {
     $builder = new ChainBuildStrategy();
     $builder->pushStrategy(new NoBuildStrategy());
     $jobs = $builder->getJobs("test");
     $this->assertCount(0, $jobs);
 }