0

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.)

1
  • 1
    add it to your $PATH Commented Jan 21, 2018 at 2:12

1 Answer 1

1

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

alternatively, alias it in your bash profile.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.