public static function closeLink($label = self::CLOSE_TEXT, $url = '#', $htmlOptions = array())
{
$htmlOptions['href'] = $url;
return self::close('a', $label, $htmlOptions);
}
public function testCloseLink() { $I = $this->codeGuy; $html = TbHtml::closeLink('Close', '#', array('class' => 'link', 'dismiss' => TbHtml::CLOSE_DISMISS_ALERT)); $a = $I->createNode($html, 'a[type=button].close'); $I->seeNodeCssClass($a, 'link'); $I->seeNodeAttributes($a, array('href' => '#', 'data-dismiss' => 'alert')); $I->seeNodeText($a, 'Close'); }