sublime-phpunit icon indicating copy to clipboard operation
sublime-phpunit copied to clipboard

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

Open spengilley opened this issue 9 years ago • 2 comments

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

spengilley avatar Jun 23 '15 10:06 spengilley

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.

stuartherbert avatar Jul 04 '15 11:07 stuartherbert

Thanks. I'll give it a go

spengilley avatar Aug 28 '15 15:08 spengilley