diff --git a/test/phpunit/FunctionsTest.php b/test/phpunit/FunctionsTest.php
index 6948292c9d9..9abce5d2589 100755
--- a/test/phpunit/FunctionsTest.php
+++ b/test/phpunit/FunctionsTest.php
@@ -243,11 +243,18 @@ class FunctionsTest extends PHPUnit_Framework_TestCase
*/
public function testDolNbOfLinesBis()
{
- $input="A string\nwith a é, &, < and >.\nThird line";
+ // This is not a html string so nb of lines depends on \n
+ $input="A string\nwith a é, &, < and > and bold tag.\nThird line";
$after=dol_nboflines_bis($input,0);
$this->assertEquals($after,3);
- $input="A string
with a é, &, < and >.
Third line";
+ // This is a html string so nb of lines depends on
+ $input="A string\nwith a é, &, < and > and bold tag.\nThird line";
+ $after=dol_nboflines_bis($input,0);
+ $this->assertEquals($after,1);
+
+ // This is a html string so nb of lines depends on
+ $input="A string
with a é, &, < and > and bold tag.
Third line";
$after=dol_nboflines_bis($input,0);
$this->assertEquals($after,3);