Skip to content

Instantly share code, notes, and snippets.

@nojimage
Last active August 29, 2015 13:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nojimage/9638976 to your computer and use it in GitHub Desktop.
Save nojimage/9638976 to your computer and use it in GitHub Desktop.
Custom phpunit script for NetBeans 8.0
#!/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"
@nojimage
Copy link
Author

phpenv対応版。パスは適当に読み替えてくださいまし。
(macportsのphpがあるのでそっちのパスも付加してたり。

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