Answer the question
In order to leave comments, you need to log in
How to install PHPUnit on Debian?
Please do not send to Google, I rummaged everything, they either put it on Windows, or put it in linux with one command and everything works.
I put it under root and I want it to be available to all users.
1. I put phpunit.phar in /usr/local/bin/phpunit
2. I do the command chmod +x phpunit.phar
3. It is necessary to register the path to it in the PATH variable, I googled it, this is done in etc/profile I write there:
echo $PATH it seems to show everything as it should:
As a result, under root and under the user phpunit --version
-bash: phpunit: command not found
But if you specify the full path in the command under root, then everything works:
/usr/local/bin/phpunit/phpunit. phar --version
What am I doing wrong? ))
Answer the question
In order to leave comments, you need to log in
Everything is clearly described in the docs:
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
$ phpunit --version
this way the downloaded phpunit.phar becomes phpunit , which is located Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question