Skip to content

Instantly share code, notes, and snippets.

@jasonvarga
Created January 8, 2019 17:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonvarga/6f97a6faf870b32067982eea068d3e71 to your computer and use it in GitHub Desktop.
Save jasonvarga/6f97a6faf870b32067982eea068d3e71 to your computer and use it in GitHub Desktop.
Turn off xdebug while running phpunit
# First, copy ext-xdebug.ini to ext-xdebug.ini.bak
alias xdebug-disable='echo "" > /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini'
alias xdebug-restore='cat /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini.bak > /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini'
function phpunit {
xdebug-disable
./vendor/bin/phpunit "$@"
xdebug-restore
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment