From e21b1eca17f28156e25427abbb2e00f6cc81b22c Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 31 Jul 2015 07:31:05 +0200 Subject: [PATCH] Remove script. --- pu.sh | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 pu.sh diff --git a/pu.sh b/pu.sh deleted file mode 100755 index 5daa2f6f0d..0000000000 --- a/pu.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -# set testing environment -cp .env.testing .env - -# test! -if [ -z "$1" ] -then - phpunit --verbose -fi - -# directories to look in: -dirs=("controllers" "database" "factories" "generators" "helpers" "models" "middleware" "repositories" "support") - -if [ ! -z "$1" ] -then - for i in "${dirs[@]}" - do - firstFile="./tests/$i/$1.php" - secondFile="./tests/$i/$1Test.php" - if [ -f "$firstFile" ] - then - # run it! - phpunit --verbose $firstFile - exit $? - fi - if [ -f "$secondFile" ] - then - # run it! - phpunit --verbose $secondFile - exit $? - fi - - - done - -fi - -# restore .env file -cp .env.local .env