Skip to content

Instantly share code, notes, and snippets.

@ishansharma
Created January 3, 2017 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishansharma/01d67df6f4baed3a29f8b75dc490dd0c to your computer and use it in GitHub Desktop.
Save ishansharma/01d67df6f4baed3a29f8b75dc490dd0c to your computer and use it in GitHub Desktop.
You may see this error when trying to run PHPUnit tests in Vagrant using PHPStorm. Here's a fix: http://ishan.co/?p=2086
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
@Caisen1988
Copy link

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