/** * @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 testRegister() { $this->initJob(); $this->assertNull($this->job->register()); }