torsdag den 8. oktober 2015

Getting phpunit to work under MAMP

Error message looks like this: -bash: phpunit: command not found


If you experience that phpunit is not working you can always try one (or all) of the following:



  1. Update dependencies
    1. Delete laravel/vendor (or temporarily rename to OLD_vendor)
    2. Run composer update (>composer update) (and wait...)
  2. Update your path by running:

    export PATH=/path/to/where/you/have/installed/phpunit/vendor/bin:$PATH

Now it should work and you can try running your command again!

Ingen kommentarer:

Send en kommentar