malkusch\lock\util\LoopTest::testExceedTimeout PHP Method

testExceedTimeout() public method

Tests exceeding the execution timeout.
public testExceedTimeout ( )
    public function testExceedTimeout()
    {
        $loop = new Loop(1);
        $loop->execute(function () use($loop) {
            sleep(1);
            $loop->end();
        });
    }