diff --git a/composer.json b/composer.json index cded361..6f1861a 100644 --- a/composer.json +++ b/composer.json @@ -58,7 +58,7 @@ "phpstan/phpstan": "2.0.2", "phpstan/phpstan-phpunit": "2.0.1", "phpstan/phpstan-strict-rules": "2.0.0", - "phpunit/phpunit": "10.5.60", + "phpunit/phpunit": "10.5.63", "symfony/error-handler": "^6.4.25 || ^7.4.0 || ^8.0.0", "symfony/phpunit-bridge": "^6.4.25 || ^7.4.0 || ^8.0.0" }, diff --git a/tests/Unit/Process/ProcessTest.php b/tests/Unit/Process/ProcessTest.php index 1bfae2e..0b575a0 100644 --- a/tests/Unit/Process/ProcessTest.php +++ b/tests/Unit/Process/ProcessTest.php @@ -31,14 +31,14 @@ public function test_command_line_built_from_array(): void private function assertCommand(string $expectedCommand, Process $process): void { + $actualCommand = $process->commandLine(); + if (IS_WINDOWS === true) { - $expectedCommand = \str_replace( - "'", - '', - $expectedCommand, - ); + // Symfony Process may wrap values containing "=" in double quotes on Windows. + $expectedCommand = \str_replace(["'", '"'], '', $expectedCommand); + $actualCommand = \str_replace(["'", '"'], '', $actualCommand); } - self::assertSame($expectedCommand, $process->commandLine()); + self::assertSame($expectedCommand, $actualCommand); } }