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

testUnlockFailsAfterException() public method

The previous exception should be the code's exception.
    public function testUnlockFailsAfterException()
    {
        $this->mutex->expects($this->any())->method("unlock")->willThrowException(new LockReleaseException());
        $this->mutex->synchronized(function () {
            throw new \DomainException();
        });
    }