Jobby\Tests\BackgroundJobTest::testCheckMaxRuntime PHP Method

testCheckMaxRuntime() public method

public testCheckMaxRuntime ( )
    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());
    }