public function testLinkTarget() { $tag = new Button('foo'); $tag->link('bar', 'baz'); $this->assertEquals('<a class="btn btn-default" href="bar" target="baz">foo</a>', $tag->getHTML()); }
/** * @param string $url * @param string $target * @return $this */ public function link($url, $target = null) { $this->uiElement->link($url, $target); return $this; }