Run test in phpunit with specific php version

前端 未结 2 970
北荒
北荒 2021-01-12 04:10

I have installed multiple PHP versions on my Mac and want to run unit-tests against a specific PHP version (or against multipls versions)

Here\'s the php versions I

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-12 04:45

    I had two version of php, default is 7.4 and older is 7.3, so I can test my testcase with older version like this.

    php7.3 ./vendor/bin/phpunit
    

提交回复
热议问题