Add more phpunit tests

This commit is contained in:
Laurent Destailleur
2011-05-01 09:38:38 +00:00
parent 0b8aca3f0d
commit 0b82d5f4a3
3 changed files with 15 additions and 11 deletions

View File

@@ -119,7 +119,7 @@ class FunctionsTest extends PHPUnit_Framework_TestCase
$input="A string first<br>\nA string second<br>";
$after=dol_htmlcleanlastbr($input);
$this->assertEquals($after,"A string first<br>\nA string second");
$input="A string\n<br>\n";
$input="A string\n<br type=\"_moz\" />\n";
$after=dol_htmlcleanlastbr($input);
$this->assertEquals($after,"A string");
$input="A string\n<br><br />\n\n";