File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,13 @@ class SignalMapTest extends TestCase
1818{
1919 /**
2020 * @requires extension pcntl
21- * @dataProvider provideSignals
2221 */
23- public function testSignalExists (int $ signal , string $ expected )
22+ public function testSignalExists ()
2423 {
25- $ this ->assertSame ($ expected , SignalMap::getSignalName ($ signal ));
26- }
27-
28- public function provideSignals ()
29- {
30- yield [\SIGINT , 'SIGINT ' ];
31- yield [\SIGKILL , 'SIGKILL ' ];
32- yield [\SIGTERM , 'SIGTERM ' ];
33- yield [\SIGSYS , 'SIGSYS ' ];
24+ $ this ->assertSame ('SIGINT ' , SignalMap::getSignalName (\SIGINT ));
25+ $ this ->assertSame ('SIGKILL ' , SignalMap::getSignalName (\SIGKILL ));
26+ $ this ->assertSame ('SIGTERM ' , SignalMap::getSignalName (\SIGTERM ));
27+ $ this ->assertSame ('SIGSYS ' , SignalMap::getSignalName (\SIGSYS ));
3428 }
3529
3630 public function testSignalDoesNotExist ()
You can’t perform that action at this time.
0 commit comments