assertTrue($tag->isAllowed('p', array('class' => 'test'))); $this->assertTrue($tag->isAllowed('img', array('class' => 'test'))); $this->assertFalse($tag->isAllowed('script', array('class' => 'test'))); $this->assertFalse($tag->isAllowed('img', array('width' => '1', 'height' => '1'))); } public function testHtml() { $tag = new Tag; $this->assertEquals('
', $tag->openHtmlTag('p'));
$this->assertEquals('', $tag->openHtmlTag('img', 'src="test" alt="truc"'));
$this->assertEquals('', $tag->openHtmlTag('img'));
$this->assertEquals('
', $tag->openHtmlTag('br'));
$this->assertEquals('