forked from Wavyzz/dolibarr
More tests
This commit is contained in:
@@ -345,6 +345,12 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
|
|||||||
$input='<a class="azerty" href="https://xxx.com/aaa/image.png" />';
|
$input='<a class="azerty" href="https://xxx.com/aaa/image.png" />';
|
||||||
$after=dol_textishtml($input);
|
$after=dol_textishtml($input);
|
||||||
$this->assertTrue($after, 'Test with a tag');
|
$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
|
// False
|
||||||
$input='xxx < br>';
|
$input='xxx < br>';
|
||||||
|
|||||||
Reference in New Issue
Block a user