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()
1919 $ lock = $ factory ->create ('lock identifier ' );
2020 $ this ->assertInstanceOf (RedisSimpleLock::class, $ lock );
2121
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+ }
2426 }
2527
2628 public function testCreateLock ()
@@ -29,7 +31,9 @@ public function testCreateLock()
2931 $ lock = $ factory ->create ('lock identifier ' );
3032 $ this ->assertInstanceOf (RedisSimpleLock::class, $ lock );
3133
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+ }
3438 }
3539}
You can’t perform that action at this time.
0 commit comments