/** * @param Job $job */ public function addJob(Job $job) { $job->setContainer($this); $job->setRootDir($this->root_dir . '/../'); $this->jobs[$job->getPriority()][] = $job; $job->register(); }
public function testGetPriority() { $this->initJob(); $this->assertEquals(Job::PRIORITY, $this->job->getPriority()); }