Mar tests.

This commit is contained in:
James Cole
2015-04-05 10:36:28 +02:00
parent 6b40a933e9
commit 9e365d9f80
7 changed files with 348 additions and 45 deletions

10
pu.sh
View File

@@ -7,7 +7,15 @@ cp .env .env.backup
cp .env.testing .env
# test!
phpunit --verbose
if [ -z "$1" ]
then
phpunit --verbose
fi
if [ ! -z "$1" ]
then
phpunit --verbose tests/controllers/$1.php
fi
# restore .env file
mv .env.backup .env