summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott <scott@paragonie.com>2015-10-12 16:09:35 -0400
committerScott <scott@paragonie.com>2015-10-15 13:55:25 -0400
commitbae96538c85cbe49f35fcf5ce16dee7adc35a41e (patch)
treeca3fd951ebd739d5ded8573006d70c173c474fa5 /tests
parente831f22ae6a5b5a145540fefe9f1d403ea0471d3 (diff)
downloadrandom_compat-bae96538c85cbe49f35fcf5ce16dee7adc35a41e.zip
random_compat-bae96538c85cbe49f35fcf5ce16dee7adc35a41e.tar.gz
random_compat-bae96538c85cbe49f35fcf5ce16dee7adc35a41e.tar.bz2
Annotate test quites
Diffstat (limited to 'tests')
-rw-r--r--tests/phpunit.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/phpunit.sh b/tests/phpunit.sh
index 7866f18..4425b6a 100644
--- a/tests/phpunit.sh
+++ b/tests/phpunit.sh
@@ -58,21 +58,25 @@ if [ $? -eq 0 ]; then
echo
echo -e "\033[33mBegin Unit Testing\033[0m"
# Run the testing suite
+ echo "Basic test suite:"
php phpunit.phar --bootstrap "$parentdir/lib/random.php" "$parentdir/tests/unit"
if [ $? -ne 0 ]; then
# Test failure
exit 1
fi
+ echo "With open_basedir enabled:"
php -d open_basedir=$parentdir phpunit.phar --bootstrap "$parentdir/vendor/autoload.php" "$parentdir/tests/unit"
if [ $? -ne 0 ]; then
# Test failure
exit 1
fi
- php -d open_basedir=$parentdir:/dev/ phpunit.phar --bootstrap "$parentdir/vendor/autoload.php" "$parentdir/tests/unit"
+ echo "With open_basedir enabled, allowing /dev:"
+ php -d open_basedir=$parentdir:/dev phpunit.phar --bootstrap "$parentdir/vendor/autoload.php" "$parentdir/tests/unit"
if [ $? -ne 0 ]; then
# Test failure
exit 1
fi
+ echo "With mbstring.func_overload enabled:"
php -d mbstring.func_overload=7 phpunit.phar --bootstrap "$parentdir/vendor/autoload.php" "$parentdir/tests/unit"
if [ $? -ne 0 ]; then
# Test failure