Skip to content

Commit 4019350

Browse files
OskarStarknicolas-grekas
authored andcommitted
Migrate to static data providers using rector/rector
1 parent f7f1cf1 commit 4019350

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎Tests/ProcessTest.php‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public function testInvalidInput($value)
301301
$process->setInput($value);
302302
}
303303

304-
publicfunctionprovideInvalidInputValues()
304+
publicstaticfunctionprovideInvalidInputValues()
305305
{
306306
return [
307307
[[]],
@@ -319,7 +319,7 @@ public function testValidInput($expected, $value)
319319
$this->assertSame($expected, $process->getInput());
320320
}
321321

322-
publicfunctionprovideInputValues()
322+
publicstaticfunctionprovideInputValues()
323323
{
324324
return [
325325
[null, null],
@@ -328,7 +328,7 @@ public function provideInputValues()
328328
];
329329
}
330330

331-
publicfunctionchainedCommandsOutputProvider()
331+
publicstaticfunctionchainedCommandsOutputProvider()
332332
{
333333
if ('\\' === \DIRECTORY_SEPARATOR) {
334334
return [
@@ -422,7 +422,7 @@ public function testIncrementalOutput($getOutput, $getIncrementalOutput, $uri)
422422
fclose($h);
423423
}
424424

425-
publicfunctionprovideIncrementalOutput()
425+
publicstaticfunctionprovideIncrementalOutput()
426426
{
427427
return [
428428
['getOutput', 'getIncrementalOutput', 'php://stdout'],
@@ -957,7 +957,7 @@ public function testMethodsThatNeedARunningProcess($method)
957957
$process->{$method}();
958958
}
959959

960-
publicfunctionprovideMethodsThatNeedARunningProcess()
960+
publicstaticfunctionprovideMethodsThatNeedARunningProcess()
961961
{
962962
return [
963963
['getOutput'],
@@ -988,7 +988,7 @@ public function testMethodsThatNeedATerminatedProcess($method)
988988
throw$e;
989989
}
990990

991-
publicfunctionprovideMethodsThatNeedATerminatedProcess()
991+
publicstaticfunctionprovideMethodsThatNeedATerminatedProcess()
992992
{
993993
return [
994994
['hasBeenSignaled'],
@@ -1093,7 +1093,7 @@ public function testGetOutputWhileDisabled($fetchMethod)
10931093
$p->{$fetchMethod}();
10941094
}
10951095

1096-
publicfunctionprovideOutputFetchingMethods()
1096+
publicstaticfunctionprovideOutputFetchingMethods()
10971097
{
10981098
return [
10991099
['getOutput'],
@@ -1130,7 +1130,7 @@ public function testTermSignalTerminatesProcessCleanly()
11301130
$this->assertTrue(true, 'A call to signal() is not expected to cause wait() to throw a RuntimeException');
11311131
}
11321132

1133-
publicfunctionresponsesCodeProvider()
1133+
publicstaticfunctionresponsesCodeProvider()
11341134
{
11351135
return [
11361136
// expected output / getter / code to execute
@@ -1140,7 +1140,7 @@ public function responsesCodeProvider()
11401140
];
11411141
}
11421142

1143-
publicfunctionpipesCodeProvider()
1143+
publicstaticfunctionpipesCodeProvider()
11441144
{
11451145
$variations = [
11461146
'fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDERR, $in);',
@@ -1183,7 +1183,7 @@ public function testIncrementalOutputDoesNotRequireAnotherCall($stream, $method)
11831183
$process->stop();
11841184
}
11851185

1186-
publicfunctionprovideVariousIncrementals()
1186+
publicstaticfunctionprovideVariousIncrementals()
11871187
{
11881188
return [
11891189
['php://stdout', 'getIncrementalOutput'],
@@ -1449,7 +1449,7 @@ public function testRawCommandLine()
14491449
$this->assertSame($expected, str_replace('Standard input code', '-', $p->getOutput()));
14501450
}
14511451

1452-
publicfunctionprovideEscapeArgument()
1452+
publicstaticfunctionprovideEscapeArgument()
14531453
{
14541454
yield ['a"b%c%'];
14551455
yield ['a"b^c^'];

0 commit comments

Comments
 (0)