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