Skip to content

Commit 4019350

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

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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-
public function provideInvalidInputValues()
304+
public static function provideInvalidInputValues()
305305
{
306306
return [
307307
[[]],
@@ -319,7 +319,7 @@ public function testValidInput($expected, $value)
319319
$this->assertSame($expected, $process->getInput());
320320
}
321321

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

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

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

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

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

1096-
public function provideOutputFetchingMethods()
1096+
public static function provideOutputFetchingMethods()
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-
public function responsesCodeProvider()
1133+
public static function responsesCodeProvider()
11341134
{
11351135
return [
11361136
// expected output / getter / code to execute
@@ -1140,7 +1140,7 @@ public function responsesCodeProvider()
11401140
];
11411141
}
11421142

1143-
public function pipesCodeProvider()
1143+
public static function pipesCodeProvider()
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-
public function provideVariousIncrementals()
1186+
public static function provideVariousIncrementals()
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-
public function provideEscapeArgument()
1452+
public static function provideEscapeArgument()
14531453
{
14541454
yield ['a"b%c%'];
14551455
yield ['a"b^c^'];

0 commit comments

Comments
 (0)