浏览代码

Add test on phpunit

Laurent Destailleur 8 年之前
父节点
当前提交
ef9cf6ef52
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      test/phpunit/FunctionsLibTest.php

+ 2 - 0
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";
     }