File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ public function testCreateIgnoredSAPIsLock()
19
19
$ lock = $ factory ->create ('lock identifier ' );
20
20
$ this ->assertInstanceOf (RedisSimpleLock::class, $ lock );
21
21
22
- $ handler = pcntl_signal_get_handler (SIGINT );
23
- $ this ->assertEmpty ($ handler );
22
+ if (function_exists ('pcntl_signal_get_handler ' )) {
23
+ $ handler = pcntl_signal_get_handler (SIGINT );
24
+ $ this ->assertEmpty ($ handler );
25
+ }
24
26
}
25
27
26
28
public function testCreateLock ()
@@ -29,7 +31,9 @@ public function testCreateLock()
29
31
$ lock = $ factory ->create ('lock identifier ' );
30
32
$ this ->assertInstanceOf (RedisSimpleLock::class, $ lock );
31
33
32
- $ handler = pcntl_signal_get_handler (SIGINT );
33
- $ this ->assertInstanceOf (Closure::class, $ handler );
34
+ if (function_exists ('pcntl_signal_get_handler ' )) {
35
+ $ handler = pcntl_signal_get_handler (SIGINT );
36
+ $ this ->assertInstanceOf (Closure::class, $ handler );
37
+ }
34
38
}
35
39
}
You can’t perform that action at this time.
0 commit comments