vendredi 13 février 2015

How to configure PHPUnit in MAMP with PHAR

I wanna test my php codes and I have decided to user PHPUnit for my test.


I have followed steps with official documentation



$ wget http://ift.tt/18KHIKL
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
$ phpunit --version
PHPUnit x.y.z by Sebastian Bergmann and contributors.


But I am using MAMP with my MacOS X.


So I am not sure how to implement PHAR files in MAMP.


Normally, the documentation tells to use this comment in terminal:



sudo mv phpunit.phar /usr/local/bin/phpunit


And my PHP location is:



/Applications/MAMP/bin/php/php5.2.17/bin/


I've tried to run this comment:



sudo mv phpunit.phar /Applications/MAMP/bin/php/php5.2.17/bin/


I don't know what should I do at this step. Please take a look because it does not work.


Aucun commentaire:

Enregistrer un commentaire