Beispiel #1
0
 public function testOneBuildToBuild()
 {
     $build = new Xinc_Build(new Xinc_Engine_Sunrise(), new Xinc_Project());
     $queue = new Xinc_Build_Queue();
     $scheduler = new Xinc_Build_Scheduler_Default();
     $build->setScheduler($scheduler);
     $queue->addBuild($build);
     $nextBuildTime = $queue->getNextBuildTime();
     $this->assertTrue($nextBuildTime != null, 'We should have a default builttime');
     $nextBuild = $queue->getNextBuild();
     $this->assertEquals($build, $nextBuild, 'The Builds should be equal');
 }