Skip to content

Commit f91d58f

Browse files
committed
[ci-review] Rector Rectify
1 parent cdf3c5c commit f91d58f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/Parallel/Command/WorkerCommandLineFactoryTest.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testSpacedMainScript(): void
5050
);
5151

5252
$expectedCommand = $this->normalizeExpectedCommandOutput(
53-
"'" . PHP_BINARY . "' " . self::turboExtensionArguments() . "'" . self::SPACED_DUMMY_MAIN_SCRIPT . "' worker --port 2000 --identifier 'identifier' 'src' --output-format 'json' --no-ansi"
53+
"'" . PHP_BINARY . "' " . $this->turboExtensionArguments() . "'" . self::SPACED_DUMMY_MAIN_SCRIPT . "' worker --port 2000 --identifier 'identifier' 'src' --output-format 'json' --no-ansi"
5454
);
5555

5656
$this->assertSame($expectedCommand, $workerCommandLine);
@@ -73,7 +73,7 @@ public function test(array $argv, Configuration $configuration, string $expected
7373
);
7474

7575
$expectedCommand = $this->normalizeExpectedCommandOutput(
76-
"'" . PHP_BINARY . "' " . self::turboExtensionArguments() . "'" . self::DUMMY_MAIN_SCRIPT . "' worker " . $expectedOptions
76+
"'" . PHP_BINARY . "' " . $this->turboExtensionArguments() . "'" . self::DUMMY_MAIN_SCRIPT . "' worker " . $expectedOptions
7777
);
7878

7979
$this->assertSame($expectedCommand, $workerCommandLine);
@@ -138,7 +138,7 @@ public static function provideData(): Iterator
138138
/**
139139
* The worker gets PHPStan Turbo through two -d options, when PHPStan ships a binary for this runtime
140140
*/
141-
private static function turboExtensionArguments(): string
141+
private function turboExtensionArguments(): string
142142
{
143143
$extensionPath = TurboExtensionSelector::findExtensionForWorkers();
144144
if ($extensionPath === null) {
@@ -159,7 +159,7 @@ private function normalizeExpectedCommandOutput(string $command): string
159159
{
160160
if (DIRECTORY_SEPARATOR === '\\') {
161161
// the turbo arguments are escaped by escapeshellarg() already, keep the single quotes inside them
162-
$turboExtensionArguments = self::turboExtensionArguments();
162+
$turboExtensionArguments = $this->turboExtensionArguments();
163163

164164
return str_replace(
165165
str_replace("'", '"', $turboExtensionArguments),

0 commit comments

Comments
 (0)