Html->tag('div', 'text');
$this->assertTags($result, '
Html->tag('div', '', array('class' => 'class-name'), true);
$this->assertTags($result, array('div' => array('class' => 'class-name'), '<text>', '/div'));
$result = $this->Html->tag('div', '', 'class-name', true);
$this->assertTags($result, array('div' => array('class' => 'class-name'), '<text>', '/div'));
}
/**
* testDiv method
*
* @access public
* @return void
*/
function testDiv() {
$result = $this->Html->div('class-name');
$this->assertTags($result, array('div' => array('class' => 'class-name')));
$result = $this->Html->div('class-name', 'text');
$this->assertTags($result, array('div' => array('class' => 'class-name'), 'text', '/div'));
$result = $this->Html->div('class-name', '', array(), true);
$this->assertTags($result, array('div' => array('class' => 'class-name'), '<text>', '/div'));
}
/**
* testPara method
*
* @access public
* @return void
*/
function testPara() {
$result = $this->Html->para('class-name', '');
$this->assertTags($result, array('p' => array('class' => 'class-name')));
$result = $this->Html->para('class-name', 'text');
$this->assertTags($result, array('p' => array('class' => 'class-name'), 'text', '/p'));
$result = $this->Html->para('class-name', '', array(), true);
$this->assertTags($result, array('p' => array('class' => 'class-name'), '<text>', '/p'));
}
/**
* endTest method
*
* @access public
* @return void
*/
function endTest() {
ClassRegistry::flush();
unset($this->Html);
}
}
?>