malkusch\lock\mutex\LockMutexTest::testUnlockFailsAfterCode PHP Method

testUnlockFailsAfterCode() public method

Tests unlock() fails after the code was executed.
    public function testUnlockFailsAfterCode()
    {
        $this->mutex->expects($this->any())->method("unlock")->willThrowException(new LockReleaseException());
        $this->mutex->synchronized(function () {
        });
    }