Hiroki
Hiroki

Reputation: 4173

Laravel: Calling PHPUnit without specifying the full path

With Laravel 5, when you call PHPUnit from terminal, your'll type in something like...

./vendor/bin/phpunit tests/Unit/TestClassName

I've been searching for how to omit ./vendor/bin/, so that you can call the test class above in the following way.

phpunit tests/Unit/TestClassName

Would it be possible to do stuff like this?

(The purpose is to use a package of Sublime Text.)

Upvotes: 0

Views: 77

Answers (1)

user320487
user320487

Reputation:

Yes, add ./vendor/bin/ to your $PATH.

alternatively, alias it in your bash profile.

Upvotes: 1

Related Questions