diff --git a/tests/Binary/TwigCsFixerTest.php b/tests/Binary/TwigCsFixerTest.php index 35b1c840..8f88d246 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([$bin, 'lint', 'Fixtures']); static::assertSame(0, $process->run(), $process->getErrorOutput()); }