PHP Class NinjaMutex\Tests\MutexLocksTest

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

Méthodes publiques

Méthode Description
testAcquireAndReleaseLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
testAcquireAndReleaseSecondMutexWithoutReleaseTheFirstMutex ( NinjaMutex\Lock\LockInterface $lockImplementor )
testAcquireLockTimeout ( NinjaMutex\Lock\LockInterface $lockImplementor )
testAcquireLockWithTimeoutImmiedietly ( NinjaMutex\Lock\LockInterface $lockImplementor )
testAllowToAcquireSelfOwnedLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
testIfMutexIsReusableAfterSeveralAcquireReleaseCycles ( NinjaMutex\Lock\LockInterface $lockImplementor )
testMultipleSelfAcquiredLocksRequiresMultipleReleasesToCompletelyReleaseMutex ( NinjaMutex\Lock\LockInterface $lockImplementor )
testUnableToAcquireLockHeldByOtherLock ( NinjaMutex\Lock\LockInterface $lockImplementor )
testUnableToReleaseLockHeldByOtherLock ( NinjaMutex\Lock\LockInterface $lockImplementor )

Method Details

testAcquireAndReleaseLock() public méthode

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

testAcquireAndReleaseSecondMutexWithoutReleaseTheFirstMutex() public méthode

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

testAcquireLockTimeout() public méthode

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

testAcquireLockWithTimeoutImmiedietly() public méthode

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

testAllowToAcquireSelfOwnedLock() public méthode

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

testIfMutexIsReusableAfterSeveralAcquireReleaseCycles() public méthode

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

testMultipleSelfAcquiredLocksRequiresMultipleReleasesToCompletelyReleaseMutex() public méthode

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

testUnableToAcquireLockHeldByOtherLock() public méthode

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

testUnableToReleaseLockHeldByOtherLock() public méthode

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