More tests
This commit is contained in:
parent
a1b44651e5
commit
04ca623ced
@ -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 html spaces';
|
||||
$after=dol_textishtml($input);
|
||||
$this->assertTrue($after, 'Test with a ');
|
||||
$input='This is a text with accent é';
|
||||
$after=dol_textishtml($input);
|
||||
$this->assertTrue($after, 'Test with a é');
|
||||
|
||||
// False
|
||||
$input='xxx < br>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user