From 4c979126fb7f83cc38901607226b61921e947e90 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 20 Feb 2024 20:31:39 +0100 Subject: [PATCH] Try --- tests/Binary/TwigCsFixerTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Binary/TwigCsFixerTest.php b/tests/Binary/TwigCsFixerTest.php index a35a4ced..35b1c840 100644 --- a/tests/Binary/TwigCsFixerTest.php +++ b/tests/Binary/TwigCsFixerTest.php @@ -12,10 +12,11 @@ final class TwigCsFixerTest extends FileTestCase { public function testBinary(): void { - $process = Process::fromShellCommandline(sprintf( - '%s lint Fixtures', - TestHelper::getOsPath(__DIR__.'/../../bin/twig-cs-fixer') - )); + $process = new Process([ + TestHelper::getOsPath(__DIR__.'/../../bin/twig-cs-fixer'), + 'lint', + 'Fixtures' + ]); static::assertSame(0, $process->run(), $process->getErrorOutput()); }