Created
October 11, 2012 06:26
-
-
Save junichi11/3870579 to your computer and use it in GitHub Desktop.
CakePHP PHPUnit for NetBeans
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
@echo off | |
set NETBEANSSUITE= | |
:loop | |
if "%1"=="" goto end | |
if "%1"=="NetBeansSuite" goto suite | |
set NETBEANSSUITE=%NETBEANSSUITE% %1 | |
shift | |
goto loop | |
:suite | |
set NETBEANSSUITE=%NETBEANSSUITE% %1 | |
shift | |
shift | |
set NETBEANSSUITE=%NETBEANSSUITE% C:\path\to\NetBeansSuite.php %1=%2 | |
goto loop | |
:end | |
php "C:\path\to\phpunit" %NETBEANSSUITE% |
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
#!/bin/bash | |
NETBEANSSUITE="" | |
while [ "$1" != "" ] | |
do | |
case "$1" in | |
*NetBeansSuite.php ) NETBEANSSUITE="$NETBEANSSUITE /path/to/NetBeansSuite.php";; | |
*run ) NETBEANSSUITE="$NETBEANSSUITE $1=$2" shift;; | |
* ) NETBEANSSUITE="$NETBEANSSUITE $1";; | |
esac | |
shift | |
done | |
/usr/bin/phpunit $NETBEANSSUITE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
とりあえずシェルも書いてみましたが、よく使っている人ならもっと簡単にかけるのかもしれないです。