Skip to content

Commit c714c35

Browse files
Merge branch '5.4' into 6.2
* 5.4: Migrate to `static` data providers using `rector/rector`
2 parents 8d9ff73 + 4019350 commit c714c35

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
@@ -300,7 +300,7 @@ public function testInvalidInput($value)
300300
$process->setInput($value);
301301
}
302302

303-
public function provideInvalidInputValues()
303+
public static function provideInvalidInputValues()
304304
{
305305
return [
306306
[[]],
@@ -318,7 +318,7 @@ public function testValidInput($expected, $value)
318318
$this->assertSame($expected, $process->getInput());
319319
}
320320

321-
public function provideInputValues()
321+
public static function provideInputValues()
322322
{
323323
return [
324324
[null, null],
@@ -327,7 +327,7 @@ public function provideInputValues()
327327
];
328328
}
329329

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

424-
public function provideIncrementalOutput()
424+
public static function provideIncrementalOutput()
425425
{
426426
return [
427427
['getOutput', 'getIncrementalOutput', 'php://stdout'],
@@ -955,7 +955,7 @@ public function testMethodsThatNeedARunningProcess($method)
955955
$process->{$method}();
956956
}
957957

958-
public function provideMethodsThatNeedARunningProcess()
958+
public static function provideMethodsThatNeedARunningProcess()
959959
{
960960
return [
961961
['getOutput'],
@@ -986,7 +986,7 @@ public function testMethodsThatNeedATerminatedProcess($method)
986986
throw $e;
987987
}
988988

989-
public function provideMethodsThatNeedATerminatedProcess()
989+
public static function provideMethodsThatNeedATerminatedProcess()
990990
{
991991
return [
992992
['hasBeenSignaled'],
@@ -1091,7 +1091,7 @@ public function testGetOutputWhileDisabled($fetchMethod)
10911091
$p->{$fetchMethod}();
10921092
}
10931093

1094-
public function provideOutputFetchingMethods()
1094+
public static function provideOutputFetchingMethods()
10951095
{
10961096
return [
10971097
['getOutput'],
@@ -1128,7 +1128,7 @@ public function testTermSignalTerminatesProcessCleanly()
11281128
$this->assertTrue(true, 'A call to signal() is not expected to cause wait() to throw a RuntimeException');
11291129
}
11301130

1131-
public function responsesCodeProvider()
1131+
public static function responsesCodeProvider()
11321132
{
11331133
return [
11341134
// expected output / getter / code to execute
@@ -1138,7 +1138,7 @@ public function responsesCodeProvider()
11381138
];
11391139
}
11401140

1141-
public function pipesCodeProvider()
1141+
public static function pipesCodeProvider()
11421142
{
11431143
$variations = [
11441144
'fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDERR, $in);',
@@ -1181,7 +1181,7 @@ public function testIncrementalOutputDoesNotRequireAnotherCall($stream, $method)
11811181
$process->stop();
11821182
}
11831183

1184-
public function provideVariousIncrementals()
1184+
public static function provideVariousIncrementals()
11851185
{
11861186
return [
11871187
['php://stdout', 'getIncrementalOutput'],
@@ -1447,7 +1447,7 @@ public function testRawCommandLine()
14471447
$this->assertSame($expected, str_replace('Standard input code', '-', $p->getOutput()));
14481448
}
14491449

1450-
public function provideEscapeArgument()
1450+
public static function provideEscapeArgument()
14511451
{
14521452
yield ['a"b%c%'];
14531453
yield ['a"b^c^'];

0 commit comments

Comments
 (0)