@@ -255,7 +255,7 @@ jobs:
255255 - name : Grab PHPUnit version
256256 id : phpunit_version
257257 # yamllint disable-line rule:line-length
258- run : echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT"
258+ run : echo "VERSION=$(php " vendor/bin/phpunit" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT"
259259
260260 - name : " DEBUG: Show grabbed version"
261261 run : echo ${{ steps.phpunit_version.outputs.VERSION }}
@@ -269,23 +269,23 @@ jobs:
269269 # Using that option prevents issues with PHP-Parser backfilling PHP tokens during our test runs.
270270 - name : " Warm the PHPUnit cache (PHPUnit 9.3+)"
271271 if : ${{ steps.phpunit_version.outputs.VERSION >= '9.3' }}
272- run : vendor/bin/phpunit --coverage-cache ./build/phpunit-cache --warm-coverage-cache
272+ run : php " vendor/bin/phpunit" --coverage-cache ./build/phpunit-cache --warm-coverage-cache
273273
274274 - name : " Run the unit tests with code coverage (PHPUnit < 9.3)"
275275 if : ${{ matrix.os != 'windows-latest' && steps.phpunit_version.outputs.VERSION < '9.3' }}
276- run : vendor/bin/phpunit tests/AllTests.php
276+ run : php " vendor/bin/phpunit" tests/AllTests.php
277277
278278 - name : " Run the unit tests with code coverage (PHPUnit 9.3+)"
279279 if : ${{ matrix.os != 'windows-latest' && steps.phpunit_version.outputs.VERSION >= '9.3' }}
280- run : vendor/bin/phpunit tests/AllTests.php --coverage-cache ./build/phpunit-cache
280+ run : php " vendor/bin/phpunit" tests/AllTests.php --coverage-cache ./build/phpunit-cache
281281
282282 - name : " Run the unit tests which may have different outcomes on Windows with code coverage (PHPUnit < 9.3)"
283283 if : ${{ matrix.os == 'windows-latest' && steps.phpunit_version.outputs.VERSION < '9.3' }}
284- run : vendor/bin/phpunit tests/AllTests.php --group Windows
284+ run : php " vendor/bin/phpunit" tests/AllTests.php --group Windows
285285
286286 - name : " Run the unit tests which may have different outcomes on Windows with code coverage (PHPUnit 9.3+)"
287287 if : ${{ matrix.os == 'windows-latest' && steps.phpunit_version.outputs.VERSION >= '9.3' }}
288- run : vendor/bin/phpunit tests/AllTests.php --group Windows --coverage-cache ./build/phpunit-cache
288+ run : php " vendor/bin/phpunit" tests/AllTests.php --group Windows --coverage-cache ./build/phpunit-cache
289289
290290 - name : Upload coverage results to Coveralls
291291 if : ${{ success() }}
0 commit comments