From ae7d77381e5c5580bb2d100eeaa41dfa406d3609 Mon Sep 17 00:00:00 2001 From: Franck Villaume Date: Sat, 11 Sep 2021 15:10:16 +0200 Subject: [PATCH] adjust unit tests --- tests/code_and_unit_tests.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/code_and_unit_tests.sh b/tests/code_and_unit_tests.sh index 7a3d3152ad..5dc1e584d0 100755 --- a/tests/code_and_unit_tests.sh +++ b/tests/code_and_unit_tests.sh @@ -20,8 +20,10 @@ set -ex -# Additional dependencies: 'pcregrep' and 'isutf8' -apt-get -y install pcregrep moreutils php-mbstring -# TODO: fix htmlpurifier include PATH in CentOS +if [ -x /usr/local/share/php/vendor/bin/phpunit ] ; then + phpunit=/usr/local/share/php/vendor/bin/phpunit +else + phpunit=phpunit +fi -phpunit code_and_unit_tests.php +$phpunit code_and_unit_tests.php -- 2.30.2