File tree 1 file changed +5
-11
lines changed
src/Symfony/Component/Console/Tests/SignalRegistry
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
18
18
{
19
19
/**
20
20
* @requires extension pcntl
21
- * @dataProvider provideSignals
22
21
*/
23
- public function testSignalExists (int $ signal , string $ expected )
22
+ public function testSignalExists ()
24
23
{
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 ));
34
28
}
35
29
36
30
public function testSignalDoesNotExist ()
You can’t perform that action at this time.
0 commit comments