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

testUnlockAfterCode() public method

Tests unlock() is called after the code was executed.
public testUnlockAfterCode ( )
    public function testUnlockAfterCode()
    {
        $this->mutex->expects($this->once())->method("unlock");
        $this->mutex->synchronized(function () {
        });
    }