/**
  * Test remove an unknown Job
  * @expectedException LogicException
  * @expectedExceptionMessage This job is not part of this crontab
  */
 public function testRemoveAnUnknownJob()
 {
     $fakeCrontabAdapter = $this->getMock('TiBeN\\CrontabManager\\CrontabAdapter');
     $fakeCrontabAdapter->expects($this->any())->method('readCrontab')->will($this->returnValue(file_get_contents($this->fixturesPath . 'simple_crontab.txt')));
     $crontabRepository = new CrontabRepository($fakeCrontabAdapter);
     $job = CrontabJob::createFromCrontabLine('30 23 * * * launch -param mycommand');
     $crontabRepository->removeJob($job);
 }