2
0
forked from Wavyzz/dolibarr

Debug of module accountancy

This commit is contained in:
Laurent Destailleur
2016-11-16 19:23:32 +01:00
parent e5cedafdc0
commit 4768017662
9 changed files with 135 additions and 86 deletions

View File

@@ -367,6 +367,14 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
$after=dol_string_nohtmltag($text, 1);
$this->assertEquals("A string with tag with < chars",$after,"test3");
$text="A string<br>Another string";
$after=dol_string_nohtmltag($text,0);
$this->assertEquals("A string\nAnother string",$after,"test4");
$text="A string<br>Another string";
$after=dol_string_nohtmltag($text,1);
$this->assertEquals("A string Another string",$after,"test5");
return true;
}