示例#1
0
文件: Alert.php 项目: myclabs/muih
 /**
  * @param string $title
  * @return $this
  */
 public function withTitle($title)
 {
     $this->uiElement->addTitle($title);
     return $this;
 }
示例#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());
 }