stuartherbert / sublime-phpunit

PHPUnit Support for Sublime Text 2
https://github.com/stuartherbert/sublime-phpunit
Other
103 stars 20 forks source link

No such file or directory: 'phpunit' when running tests #53

Open spengilley opened 9 years ago

spengilley commented 9 years ago

Get this error in the sublime console (ST3) when right clicking an open file and selecting PHPUnit\Run Tests...

The open file is a test

stuartherbert commented 9 years ago

That's because phpunit isn't in your PATH.

I've just pushed a fix for this. The plugin will now look for vendor/bin/phpunit before trying to run phpunit from your PATH. Hopefully this will fix this issue for the majority of people.

spengilley commented 9 years ago

Thanks. I'll give it a go