Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
You may see this error when trying to run PHPUnit tests in Vagrant using PHPStorm. Here's a fix:
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar '/usr/local/bin', file extension (or combination) not recognised or the directory does not exist' in /home/vagrant/.phpstorm_helpers/phpunit.php:181

This comment has been minimized.

Copy link

@Caisen1988 Caisen1988 commented Apr 2, 2019

cd /usr/local/bin/
sudo cp phpunit phpunit.phar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.