Last active
August 29, 2015 13:57
-
-
Save nojimage/9638976 to your computer and use it in GitHub Desktop.
Custom phpunit script for NetBeans 8.0
This file contains 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
#!/usr/bin/env bash | |
export PATH="$HOME/.phpenv/bin:/opt/local/bin:$PATH" | |
eval "$(phpenv init -)" | |
args="" | |
while [ "$1" != "" ] ; do | |
arg=$1 | |
if [[ $arg =~ NetBeansSuite.php && -f $(pwd)/nbproject/NetBeansSuite.php ]] ; then | |
# Change custom NetBeansSuite path | |
arg=$(pwd)/nbproject/NetBeansSuite.php | |
fi | |
args=$(printf "%s %q" "$args" "$arg") | |
shift | |
done | |
XDEBUG_CONFIG="idekey=netbeans-xdebug" phpunit "$args" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
phpenv対応版。パスは適当に読み替えてくださいまし。
(macportsのphpがあるのでそっちのパスも付加してたり。