Skip to content
Snippets Groups Projects
Commit 386a1dcb authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

More phpunit tests

parent 64e32258
Branches
No related tags found
No related merge requests found
......@@ -388,6 +388,31 @@ class FunctionsTest extends PHPUnit_Framework_TestCase
}
/**
* testImgPicto
*
* @return void
*/
public function testImgPicto()
{
$s=img_picto('alt','user');
print __METHOD__." s=".$s."\n";
$this->assertContains('theme',$s,'testImgPicto1');
$s=img_picto('alt','img.png','style="float: right"',0);
print __METHOD__." s=".$s."\n";
$this->assertContains('theme',$s,'testImgPicto2');
$this->assertContains('style="float: right"',$s,'testImgPicto2');
$s=img_picto('alt','/fullpath/img.png','',1);
print __METHOD__." s=".$s."\n";
$this->assertEquals($s,'<img src="/fullpath/img.png" border="0" alt="alt" title="alt">','testImgPicto3');
$s=img_picto('alt','/fullpath/img.png','',true);
print __METHOD__." s=".$s."\n";
$this->assertEquals($s,'<img src="/fullpath/img.png" border="0" alt="alt" title="alt">','testImgPicto3');
}
/**
* testDolNow
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment