PHP 클래스 malkusch\lock\util\DoubleCheckedLockingTest

또한 보기: DoubleCheckedLocking
저자: Markus Malkusch ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: malkusch/lock

공개 메소드들

메소드 설명
provideTestCodeNotExecuted ( ) : callable[][] Returns checks for testCodeNotExecuted().
testCheckFailsAcquiresNoLock ( ) Tests that the lock will not be acquired for a failing test.
testCodeExecuted ( ) Tests that the code executed if the checks are true.
testCodeNotExecuted ( callable $check ) Tests that the code is not executed if the first or second check fails.
testLockedCheckAndExecution ( ) Tests that the check and execution are in the same lock.

보호된 메소드들

메소드 설명
setUp ( )

메소드 상세

provideTestCodeNotExecuted() 공개 메소드

Returns checks for testCodeNotExecuted().
public provideTestCodeNotExecuted ( ) : callable[][]
리턴 callable[][] The test cases.

setUp() 보호된 메소드

protected setUp ( )

testCheckFailsAcquiresNoLock() 공개 메소드

Tests that the lock will not be acquired for a failing test.

testCodeExecuted() 공개 메소드

Tests that the code executed if the checks are true.
public testCodeExecuted ( )

testCodeNotExecuted() 공개 메소드

Tests that the code is not executed if the first or second check fails.
public testCodeNotExecuted ( callable $check )
$check callable The check.

testLockedCheckAndExecution() 공개 메소드

Tests that the check and execution are in the same lock.