2
0
forked from Wavyzz/dolibarr

More tests

This commit is contained in:
Laurent Destailleur
2018-03-25 13:12:14 +02:00
parent a1b44651e5
commit 04ca623ced

View File

@@ -345,6 +345,12 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
$input='<a class="azerty" href="https://xxx.com/aaa/image.png" />';
$after=dol_textishtml($input);
$this->assertTrue($after, 'Test with a tag');
$input='This is a text with&nbsp;html spaces';
$after=dol_textishtml($input);
$this->assertTrue($after, 'Test with a &nbsp;');
$input='This is a text with accent &eacute;';
$after=dol_textishtml($input);
$this->assertTrue($after, 'Test with a &eacute;');
// False
$input='xxx < br>';