Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This simple rewrite will help you to run phpunit from PHPStorm in Vagrant box without patching php.jar
location ~ ^/_intellij_phpunit_launcher.php$ {
expires off; ## Do not cache dynamic content
set $args "$args&dir=$document_root&config=phpunit.xml.dist";
fastcgi_pass unix://var/run/php5-fpm.sock; # Replace with your fpm pass
fastcgi_read_timeout 600;
include fastcgi_params; ## See /etc/nginx/fastcgi_params

This comment has been minimized.

Copy link

@tegansnyder tegansnyder commented Nov 27, 2013

thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment