PHP: How can I tweak PHPUnit to use a different PHP interpreter?

前端 未结 6 910
误落风尘
误落风尘 2021-01-04 13:31

My system has two PHP interpreters. One came bundled with the OS and the other I installed via the XAMPP package. All of my PHP extensions are applied to the XAMPP installat

6条回答
  •  心在旅途
    2021-01-04 14:11

    Since modifying phpunit file did not work for me because of phar signature errors, I was running phpunit with different php version by calling interpreter explicitly (on Linux):

    php7.1 /usr/local/bin/phpunit
    php5.6 /usr/local/bin/phpunit
    

    Following the example with XAMPP, full path to php interpreter could be provided:

    /Applications/XAMPP/xamppfiles/bin/php /usr/local/bin/phpunit
    

提交回复
热议问题