File tree Expand file tree Collapse file tree 3 files changed +8
-17
lines changed Expand file tree Collapse file tree 3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,6 @@ public function test_batch_for_same_instance_with_default_driver(): void
35
35
$ this ->assertCount ($ count , $ ids );
36
36
}
37
37
38
- public function test_batch_for_diff_instance_with_default_driver (): void
39
- {
40
- $ ids = [];
41
- $ count = 100_000 ; // 100k
42
-
43
- for ($ i = 0 ; $ i < $ count ; $ i ++) {
44
- $ ids [(new Snowflake ())->id ()] = 1 ;
45
- }
46
-
47
- // This pattern will result in generating duplicate IDs.
48
- $ this ->assertGreaterThan (90000 , count ($ ids ));
49
- }
50
-
51
38
/**
52
39
* @throws Throwable
53
40
*/
Original file line number Diff line number Diff line change 18
18
class FileLockResolverTest extends TestCase
19
19
{
20
20
private FileLockResolver $ fileLocker ;
21
+
21
22
/** @var callable */
22
23
private $ defer ;
23
24
Original file line number Diff line number Diff line change 17
17
18
18
class RedisSequenceResolverTest extends TestCase
19
19
{
20
+ public function setUp (): void
21
+ {
22
+ if (! extension_loaded ('redis ' )) {
23
+ $ this ->markTestSkipped ('Redis extension is not installed ' );
24
+ }
25
+ }
26
+
20
27
public function test_invalid_redis_connect (): void
21
28
{
22
29
$ redis = $ this ->createMock (\Redis::class);
@@ -57,10 +64,6 @@ public function test_set_cache_prefix(): void
57
64
*/
58
65
public function test_real_redis (): void
59
66
{
60
- if (! extension_loaded ('redis ' )) {
61
- $ this ->markTestSkipped ('Redis extension is not installed. ' );
62
- }
63
-
64
67
if (! ($ host = getenv ('REDIS_HOST ' )) || ! ($ port = getenv ('REDIS_PORT ' ))) {
65
68
$ this ->markTestSkipped ('Redis host or port is not set, skip real redis test. ' );
66
69
}
You can’t perform that action at this time.
0 commit comments