PHP Class NinjaMutex\Tests\Lock\LockTest

Author: Kamil Dziedzic ([email protected])
Inheritance: extends NinjaMutex\Tests\AbstractTest
Datei anzeigen Open project: arvenil/ninja-mutex

Public Methods

Method Description
testAcquireAndReleaseLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
testDisallowLockImplementorToReleaseLockAcquiredByOtherImplementor ( NinjaMutex\Lock\LockInterface $lockImplementor )
testDisallowToAcquireLockOwnedByOtherLockImplementor ( NinjaMutex\Lock\LockInterface $lockImplementor )
testDisallowToAcquireSelfOwnedLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
testExpiration ( NinjaMutex\Tests\Lock\Fabric\LockFabricWithExpirationInterface $lockFabricWithExpiration )
testIfLockDestructorThrowsWhenBackendIsUnavailable ( NinjaMutex\Lock\LockInterface $lockImplementor, NinjaMutex\Tests\Mock\PermanentServiceInterface $backend )
testIfLockIsReleasedAfterLockImplementorIsDestroyed ( NinjaMutex\Lock\LockInterface $lockImplementor )
testIfLockReleasedByOneImplementorCanBeAcquiredByOther ( NinjaMutex\Lock\LockInterface $lockImplementor )
testIfLocksAreNotSharedBetweenImplementors ( NinjaMutex\Lock\LockInterface $lockImplementor )

Method Details

testAcquireAndReleaseLock() public method

public testAcquireAndReleaseLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface

testDisallowLockImplementorToReleaseLockAcquiredByOtherImplementor() public method

public testDisallowLockImplementorToReleaseLockAcquiredByOtherImplementor ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface

testDisallowToAcquireLockOwnedByOtherLockImplementor() public method

public testDisallowToAcquireLockOwnedByOtherLockImplementor ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface

testDisallowToAcquireSelfOwnedLock() public method

public testDisallowToAcquireSelfOwnedLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface

testExpiration() public method

public testExpiration ( NinjaMutex\Tests\Lock\Fabric\LockFabricWithExpirationInterface $lockFabricWithExpiration )
$lockFabricWithExpiration NinjaMutex\Tests\Lock\Fabric\LockFabricWithExpirationInterface

testIfLockDestructorThrowsWhenBackendIsUnavailable() public method

public testIfLockDestructorThrowsWhenBackendIsUnavailable ( NinjaMutex\Lock\LockInterface $lockImplementor, NinjaMutex\Tests\Mock\PermanentServiceInterface $backend )
$lockImplementor NinjaMutex\Lock\LockInterface
$backend NinjaMutex\Tests\Mock\PermanentServiceInterface

testIfLockIsReleasedAfterLockImplementorIsDestroyed() public method

public testIfLockIsReleasedAfterLockImplementorIsDestroyed ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface

testIfLockReleasedByOneImplementorCanBeAcquiredByOther() public method

public testIfLockReleasedByOneImplementorCanBeAcquiredByOther ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface

testIfLocksAreNotSharedBetweenImplementors() public method

public testIfLocksAreNotSharedBetweenImplementors ( NinjaMutex\Lock\LockInterface $lockImplementor )
$lockImplementor NinjaMutex\Lock\LockInterface