Tharindu Sandaruwan
Tharindu Sandaruwan

Reputation: 195

'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?

Upvotes: 14

Views: 12267

Answers (3)

AbdElzaher
AbdElzaher

Reputation: 134

Please try this command for windows:

php vendor/phpunit/phpunit/phpunit

Upvotes: 10

Sampath Gunasekara
Sampath Gunasekara

Reputation: 687

This is linux based code..

$ vendor/bin/phpunit

Try this for windows..

vendor\bin\phpunit

Upvotes: 52

common sense
common sense

Reputation: 3912

  1. Install dependencies via composer

    $ composer update

  2. Run tests

    $ vendor/bin/phpunit

Upvotes: 1

Related Questions