PHP Class NinjaMutex\Tests\Lock\LockTest

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

Méthodes publiques

Méthode 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 méthode

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

testDisallowLockImplementorToReleaseLockAcquiredByOtherImplementor() public méthode

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

testDisallowToAcquireLockOwnedByOtherLockImplementor() public méthode

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

testDisallowToAcquireSelfOwnedLock() public méthode

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

testExpiration() public méthode

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

testIfLockDestructorThrowsWhenBackendIsUnavailable() public méthode

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

testIfLockIsReleasedAfterLockImplementorIsDestroyed() public méthode

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

testIfLockReleasedByOneImplementorCanBeAcquiredByOther() public méthode

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

testIfLocksAreNotSharedBetweenImplementors() public méthode

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