Beispiel #1
0
 /**
  * @param string $title
  * @return $this
  */
 public function withTitle($title)
 {
     $this->uiElement->addTitle($title);
     return $this;
 }
Beispiel #2
0
 public function testAddTitle()
 {
     $tag = new Alert('foo');
     $tag->addTitle('bar');
     $this->assertEquals('<div class="alert alert-info">' . '<strong>bar</strong>' . '<button type="button" data-dismiss="alert" aria-hidden="true">&times;</button>' . 'foo' . '</div>', $tag->getHTML());
 }