Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPUnit doesn't install an executable script

So I installed PHPUnit using PEAR, everything worked fine. The installation showed that everything was installed, and in my /usr/lib/php the PHPUnit folder is filled with the complete library.

However, I can't find the phpunit.sh anywhere. Where is it located? If I try to run phpunit on CLI, it doesn't find the command, so it can't be anywhere in the "standard"-binary folders like /usr/local/bin.

Do I have to download the script myself? Maybe even compile it myself?

PS: I'm running on OS X 10.6

like image 869
F.P Avatar asked Apr 16 '26 10:04

F.P


1 Answers

Run

$ pear list phpunit/phpunit
...
script /usr/bin/phpunit
...

that's your executable script. No .sh appended.

PHPUnit is pure PHP, no need to compile anything.

like image 100
cweiske Avatar answered Apr 18 '26 00:04

cweiske



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!