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

前端 未结 6 865
误落风尘
误落风尘 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:12

    For Mac/Linux, the first line of the phpunit script with starts with

    #!/usr/bin/php
    

    change that to

    #!/Applications/XAMPP/xamppfiles/bin/php
    

    or whatever other php interpret you want to use.

提交回复
热议问题