public function testCheckMaxRuntime()
{
if ($this->helper->getPlatform() !== Helper::UNIX) {
$this->markTestSkipped("'maxRuntime' is not supported on Windows");
}
$helper = $this->getMock('Jobby\\Helper', ['getLockLifetime']);
$helper->expects($this->once())->method('getLockLifetime')->will($this->returnValue(0));
$this->runJob(['command' => 'true', 'maxRuntime' => 1], $helper);
$this->assertEmpty($this->getLogContent());
}