Exemple #1
0
 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());
 }
Exemple #2
0
 /**
  * @param string $url
  * @param string $target
  * @return $this
  */
 public function link($url, $target = null)
 {
     $this->uiElement->link($url, $target);
     return $this;
 }