Esempio n. 1
0
 /**
  * @param Job $job
  */
 public function addJob(Job $job)
 {
     $job->setContainer($this);
     $job->setRootDir($this->root_dir . '/../');
     $this->jobs[$job->getPriority()][] = $job;
     $job->register();
 }
Esempio n. 2
0
 public function testRegister()
 {
     $this->initJob();
     $this->assertNull($this->job->register());
 }