]> git.mxchange.org Git - friendica.git/blob - library/defuse/php-encryption-1.2.1/test.sh
RINO 2 based on php-encryption
[friendica.git] / library / defuse / php-encryption-1.2.1 / test.sh
1 #!/bin/bash
2
3 echo "Normal"
4 echo "--------------------------------------------------"
5 php -d mbstring.func_overload=0 tests/runtime.php
6 if [ $? -ne 0 ]; then
7     echo "FAIL."
8     exit 1
9 fi
10 echo "--------------------------------------------------"
11
12 echo ""
13
14 echo "Multibyte"
15 echo "--------------------------------------------------"
16 php -d mbstring.func_overload=7 tests/runtime.php
17 if [ $? -ne 0 ]; then
18     echo "FAIL."
19     exit 1
20 fi
21 echo "--------------------------------------------------"
22
23 echo ""
24
25 if [ -z "$(php Crypto.php)" ]; then
26     echo "PASS: Crypto.php output is empty."
27 else
28     echo "FAIL: Crypto.php output is not empty."
29     exit 1
30 fi