Skip to content

Commit 5d05704

Browse files
committed
ff3
1 parent 8fe259c commit 5d05704

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tests/mutex/FlockMutexTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function tearDown(): void
3636
}
3737

3838
/**
39-
* @dataProvider dpTimeoutableStrategies
39+
* @dataProvider dpTimeoutableStrategiesCases
4040
*/
4141
public function testCodeExecutedOutsideLockIsNotThrown(int $strategy)
4242
{
@@ -50,7 +50,7 @@ public function testCodeExecutedOutsideLockIsNotThrown(int $strategy)
5050
}
5151

5252
/**
53-
* @dataProvider dpTimeoutableStrategies
53+
* @dataProvider dpTimeoutableStrategiesCases
5454
*/
5555
public function testTimeoutOccurs(int $strategy)
5656
{
@@ -73,7 +73,7 @@ function () {
7373
}
7474
}
7575

76-
public function dpTimeoutableStrategies()
76+
public function dpTimeoutableStrategiesCases()
7777
{
7878
return [
7979
[FlockMutex::STRATEGY_PCNTL],

tests/mutex/RedisMutexTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function ($id): array {
5959
* @param int $count The total count of servers
6060
* @param int $available the count of available servers
6161
*
62-
* @dataProvider provideMinority
62+
* @dataProvider provideMinorityCases
6363
*/
6464
public function testTooFewServerToAcquire(int $count, int $available)
6565
{
@@ -94,7 +94,7 @@ function () use (&$i, $available): bool {
9494
* @param int $count The total count of servers
9595
* @param int $available the count of available servers
9696
*
97-
* @dataProvider provideMajority
97+
* @dataProvider provideMajorityCases
9898
*/
9999
public function testFaultTolerance(int $count, int $available)
100100
{
@@ -127,7 +127,7 @@ function () use (&$i, $available): bool {
127127
* @param int $count The total count of servers
128128
* @param int $available the count of available servers
129129
*
130-
* @dataProvider provideMinority
130+
* @dataProvider provideMinorityCases
131131
*/
132132
public function testAcquireTooFewKeys($count, $available)
133133
{
@@ -206,7 +206,7 @@ public function provideTimingOutCases()
206206
* @param int $count The total count of servers
207207
* @param int $available the count of available servers
208208
*
209-
* @dataProvider provideMajority
209+
* @dataProvider provideMajorityCases
210210
*/
211211
public function testAcquireWithMajority(int $count, int $available)
212212
{
@@ -235,7 +235,7 @@ function () use (&$i, $available): bool {
235235
* @param int $count The total count of servers
236236
* @param int $available the count of available servers
237237
*
238-
* @dataProvider provideMinority
238+
* @dataProvider provideMinorityCases
239239
*/
240240
public function testTooFewServersToRelease(int $count, int $available)
241241
{
@@ -270,7 +270,7 @@ function () use (&$i, $available): bool {
270270
* @param int $count The total count of servers
271271
* @param int $available the count of available servers
272272
*
273-
* @dataProvider provideMinority
273+
* @dataProvider provideMinorityCases
274274
*/
275275
public function testReleaseTooFewKeys(int $count, int $available): void
276276
{
@@ -300,7 +300,7 @@ function () use (&$i, $available): bool {
300300
*
301301
* @return int[][] test cases
302302
*/
303-
public function provideMinority()
303+
public function provideMinorityCases()
304304
{
305305
// total count, available count
306306
return [
@@ -320,7 +320,7 @@ public function provideMinority()
320320
*
321321
* @return int[][] test cases
322322
*/
323-
public function provideMajority()
323+
public function provideMajorityCases()
324324
{
325325
// total count, available count
326326
return [

0 commit comments

Comments
 (0)