Created
January 8, 2019 17:30
-
-
Save jasonvarga/6f97a6faf870b32067982eea068d3e71 to your computer and use it in GitHub Desktop.
Turn off xdebug while running phpunit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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