malkusch\lock\mutex\LockMutexTest::testUnlockAfterCode PHP Méthode

testUnlockAfterCode() public méthode

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