We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3011c7 commit d40c92eCopy full SHA for d40c92e
Tests/SignalRegistry/SignalMapTest.php
@@ -18,17 +18,21 @@ class SignalMapTest extends TestCase
18
{
19
/**
20
* @requires extension pcntl
21
- *
22
- * @testWith [2, "SIGINT"]
23
- * [9, "SIGKILL"]
24
- * [15, "SIGTERM"]
25
- * [31, "SIGSYS"]
+ * @dataProvider provideSignals
26
*/
27
public function testSignalExists(int $signal, string $expected)
28
29
$this->assertSame($expected, SignalMap::getSignalName($signal));
30
}
31
+ public function provideSignals()
+ {
+ yield [\SIGINT, 'SIGINT'];
+ yield [\SIGKILL, 'SIGKILL'];
32
+ yield [\SIGTERM, 'SIGTERM'];
33
+ yield [\SIGSYS, 'SIGSYS'];
34
+ }
35
+
36
public function testSignalDoesNotExist()
37
38
$this->assertNull(SignalMap::getSignalName(999999));
0 commit comments