0

I am new to using phpunit in Laravel for testing. When I tried and typed in phpunit in commandline, I got an error.

I even tried to to use ./vendor/bin/phpunit like most people suggested and it still doesn't work. Here are all the errors that I have gotten. enter image description here

1
  • what is the exact laravel version you are using? Your phpunit seems to be outdated - you should try to update it. Also try running the following command from the root of your project call ./vendor/bin/phpunit Commented May 10, 2017 at 5:17

1 Answer 1

1

You need first to run composer, after this you have to run phpunit using the convention of your OS, I saw you are in Windows, so you need to run vendor\bin\phpunit or you can use gitbash to emulate Unix system.

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

1 Comment

Wow I can't believe this, I was using the forward slash instead of the backward slash. No wonder I got the error 'vendor' is not an internal command. Thanks RafaelQm.

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.