'Run phpunit with custom php path
I'm working on Redhat server, I'm going to add unit test (PHPUnit) to an existing application, PHP is installed on custom path /logi/php7211 (I shouldn't change any configuration), when I run the command php -v I get -bash: php : commande introuvable (This is not a probleme for me).
When I run the command /logi/php7211/bin/php -v I get PHP 7.2.11 (cli)
I've installed php using
➜ wget -O phpunit https://phar.phpunit.de/phpunit-5.phar
➜ chmod +x phpunit
When I run the command ./phpunit --version I get the error /usr/bin/env: php: Aucun fichier ou dossier de ce type
How can I add the path of php (/logi/php7211/bin/php) to phpunit ?
Solution 1:[1]
SOLVED: I've to run /logi/php7211/bin/php ./phpunit --version
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
