Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?

I've recently installed laravel and have written some tests in /tests directory but when I use phpunit at cmd in the same folder that phpunit.xml exists, it says 'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?

like image 428
Tharindu Sandaruwan Avatar asked Dec 10 '17 14:12

Tharindu Sandaruwan


2 Answers

This is linux based code..

$ vendor/bin/phpunit

Try this for windows..

vendor\bin\phpunit
like image 125
Sampath Gunasekara Avatar answered Sep 30 '22 08:09

Sampath Gunasekara


Please try this command for windows:

php vendor/phpunit/phpunit/phpunit

like image 45
AbdElzaher Avatar answered Sep 30 '22 08:09

AbdElzaher