Skip to content

Commit 2afa78e

Browse files
committed
Update to ./run-tests.sh
1 parent 8c7f0c8 commit 2afa78e

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
vendor
2+
phpunit.phar
3+
phpunit.phar.asc

run-tests.sh

100644100755
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
#!/usr/bin/env bash
3-
clean=1 # Delete phpunit.phar after the tests are complete?
43
gpg --fingerprint D8406D0D82947747293778314AA394086372C20A
54
if [ $? -ne 0 ]; then
65
echo -e "\033[33mDownloading PGP Public Key...\033[0m"
@@ -13,16 +12,6 @@ if [ $? -ne 0 ]; then
1312
fi
1413
fi
1514

16-
if [ "$clean" -eq 1 ]; then
17-
# Let's clean them up, if they exist
18-
if [ -f phpunit.phar ]; then
19-
rm -f phpunit.phar
20-
fi
21-
if [ -f phpunit.phar.asc ]; then
22-
rm -f phpunit.phar.asc
23-
fi
24-
fi
25-
2615
# Let's grab the latest release and its signature
2716
if [ ! -f phpunit.phar ]; then
2817
wget https://phar.phpunit.de/phpunit.phar
@@ -37,7 +26,7 @@ if [ $? -eq 0 ]; then
3726
echo
3827
echo -e "\033[33mBegin Unit Testing\033[0m"
3928
# Run the testing suite
40-
phpunit --configuration phpunit.xml.dist
29+
php phpunit --configuration phpunit.xml.dist
4130
# Cleanup
4231
if [ "$clean" -eq 1 ]; then
4332
echo -e "\033[32mCleaning Up!\033[0m"

0 commit comments

Comments
 (0)