NinjaMutex\Tests\Lock\LockTest::testDisallowToAcquireSelfOwnedLock PHP Method

testDisallowToAcquireSelfOwnedLock() public method

public testDisallowToAcquireSelfOwnedLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface
    public function testDisallowToAcquireSelfOwnedLock(LockInterface $lockImplementor)
    {
        $name = 'forfiter';
        $lockImplementor->acquireLock($name, 0);
        $this->assertFalse($lockImplementor->acquireLock($name, 0));
        $lockImplementor->releaseLock($name);
    }