Html->tag('div', 'text');
$this->assertTags($result, '
Html->tag('div', '', 'class-name');
$this->assertTags($result, array('div' => array('class' => 'class-name'), 'preg://', '/div'));
$result = $this->Html->tag('div', '', array('class' => 'class-name', 'escape' => true));
$this->assertTags($result, array('div' => array('class' => 'class-name'), '<text>', '/div'));
}
/**
* testUseTag method
*
* @return void
*/
public function testUseTag() {
$result = $this->Html->useTag('unknowntag');
$this->assertEqual($result, '');
$result = $this->Html->useTag('formend');
$this->assertTags($result, '/form');
$result = $this->Html->useTag('form', 'url', ' test');
$this->assertEqual($result, '