forked from Wavyzz/dolibarr
Fix phpunit
This commit is contained in:
@@ -712,15 +712,15 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$s=img_picto('title','/fullpath/img.png','',1);
|
$s=img_picto('title','/fullpath/img.png','',1);
|
||||||
print __METHOD__." s=".$s."\n";
|
print __METHOD__." s=".$s."\n";
|
||||||
$this->assertEquals('<img src="/fullpath/img.png" border="0" alt="" title="title">',$s,'testImgPicto3');
|
$this->assertEquals('<img src="/fullpath/img.png" alt="" title="title">',$s,'testImgPicto3');
|
||||||
|
|
||||||
$s=img_picto('title','/fullpath/img.png','',true);
|
$s=img_picto('title','/fullpath/img.png','',true);
|
||||||
print __METHOD__." s=".$s."\n";
|
print __METHOD__." s=".$s."\n";
|
||||||
$this->assertEquals('<img src="/fullpath/img.png" border="0" alt="" title="title">',$s,'testImgPicto4');
|
$this->assertEquals('<img src="/fullpath/img.png" alt="" title="title">',$s,'testImgPicto4');
|
||||||
|
|
||||||
$s=img_picto('title:alt','/fullpath/img.png','',true);
|
$s=img_picto('title:alt','/fullpath/img.png','',true);
|
||||||
print __METHOD__." s=".$s."\n";
|
print __METHOD__." s=".$s."\n";
|
||||||
$this->assertEquals('<img src="/fullpath/img.png" border="0" alt="alt" title="title">',$s,'testImgPicto5');
|
$this->assertEquals('<img src="/fullpath/img.png" alt="alt" title="title">',$s,'testImgPicto5');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user