From ef9cf6ef5235ef37ecfbb03dea295809bcc7d17c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 21 May 2017 23:54:37 +0200 Subject: [PATCH] Add test on phpunit --- test/phpunit/FunctionsLibTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/phpunit/FunctionsLibTest.php b/test/phpunit/FunctionsLibTest.php index 28e55fd793b..8c57e8a178a 100644 --- a/test/phpunit/FunctionsLibTest.php +++ b/test/phpunit/FunctionsLibTest.php @@ -81,6 +81,8 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase global $conf,$user,$langs,$db; //$db->begin(); // This is to have all actions inside a transaction even if test launched without suite. + if (! function_exists('mb_substr')) { print "\n".__METHOD__." function mb_substr must be enabled.\n"; die(); } + print __METHOD__."\n"; }