You can add the current directory to your path.
For Linux / Mac, add the following to your .bash_profile , Windows will look similar, change the line below and add it to your PATH .
Remember to reload your terminal or bash_profile resource.
You should now be able to run: phpunit , and it will automatically search for it in ./vendor/bin , and if it exists, it will execute with that.
source share