From 04ca623ced13074f97dbf37f9ddef79ba8c58498 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Mar 2018 13:12:14 +0200 Subject: [PATCH] More tests --- test/phpunit/FunctionsLibTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/phpunit/FunctionsLibTest.php b/test/phpunit/FunctionsLibTest.php index d2dce75b4a5..eb84f6cd348 100644 --- a/test/phpunit/FunctionsLibTest.php +++ b/test/phpunit/FunctionsLibTest.php @@ -345,6 +345,12 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase $input=''; $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>';