Метод | Описание | |
---|---|---|
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. |