메소드 | 설명 | |
---|---|---|
provideMajority ( ) : int[][] | Provides test cases with enough. | |
provideMinority ( ) : int[][] | Provides test cases with too few. | |
provideTestTimingOut ( ) : array | Returns test cases for testTimingOut(). | |
testAcquireTooFewKeys ( integer $count, integer $available ) | Tests too few keys could be acquired. | |
testAcquireWithMajority ( integer $count, integer $available ) | Tests synchronized() works if the majority of keys was acquired. | |
testFaultTolerance ( integer $count, integer $available ) | Tests synchronized() does work if the majority of servers is up. | |
testReleaseTooFewKeys ( integer $count, integer $available ) | Tests releasing too few keys. | |
testSeedRandom ( ) | Tests seeding produces different tokens for each process. | |
testTimingOut ( integer $count, integer $timeout, integer $delay ) | Tests acquiring keys takes too long. | |
testTooFewServerToAcquire ( integer $count, integer $available ) | Tests acquire() fails because too few servers are available. | |
testTooFewServersToRelease ( integer $count, integer $available ) | Tests releasing fails because too few servers are available. |
메소드 | 설명 | |
---|---|---|
setUp ( ) |
메소드 | 설명 | |
---|---|---|
buildRedisMutex ( integer $count, integer $timeout = 1 ) : PHPUnit_Framework_MockObject_MockObject | Builds a testaböe RedisMutex mock. |
public provideMajority ( ) : int[][] | ||
리턴 | int[][] | Test cases. |
public provideMinority ( ) : int[][] | ||
리턴 | int[][] | Test cases. |
public provideTestTimingOut ( ) : array | ||
리턴 | array | Test cases. |
public testAcquireTooFewKeys ( integer $count, integer $available ) | ||
$count | integer | The total count of servers |
$available | integer | The count of available servers. |
public testAcquireWithMajority ( integer $count, integer $available ) | ||
$count | integer | The total count of servers |
$available | integer | The count of available servers. |
public testFaultTolerance ( integer $count, integer $available ) | ||
$count | integer | The total count of servers |
$available | integer | The count of available servers. |
public testReleaseTooFewKeys ( integer $count, integer $available ) | ||
$count | integer | The total count of servers |
$available | integer | The count of available servers. |
public testSeedRandom ( ) |
public testTooFewServerToAcquire ( integer $count, integer $available ) | ||
$count | integer | The total count of servers |
$available | integer | The count of available servers. |
public testTooFewServersToRelease ( integer $count, integer $available ) | ||
$count | integer | The total count of servers |
$available | integer | The count of available servers. |