Holly
Holly

Reputation: 1

phpunit testing not working on Laravel 5.4

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

Upvotes: 0

Views: 296

Answers (1)

RafaelQm
RafaelQm

Reputation: 152

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.

Upvotes: 1

Related Questions