PHP 클래스 NinjaMutex\Tests\Lock\LockTest

저자: Kamil Dziedzic ([email protected])
파일 보기 프로젝트 열기: arvenil/ninja-mutex

공개 메소드들

메소드 설명
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 )

메소드 상세

testAcquireAndReleaseLock() 공개 메소드

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

testDisallowLockImplementorToReleaseLockAcquiredByOtherImplementor() 공개 메소드

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

testDisallowToAcquireLockOwnedByOtherLockImplementor() 공개 메소드

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

testDisallowToAcquireSelfOwnedLock() 공개 메소드

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

testExpiration() 공개 메소드

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

testIfLockDestructorThrowsWhenBackendIsUnavailable() 공개 메소드

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

testIfLockIsReleasedAfterLockImplementorIsDestroyed() 공개 메소드

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

testIfLockReleasedByOneImplementorCanBeAcquiredByOther() 공개 메소드

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

testIfLocksAreNotSharedBetweenImplementors() 공개 메소드

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