示例#1
0
 public function testSetTitleContent()
 {
     $tag = new Collapse('foo');
     $tag->setTitleContent('bar');
     $this->assertEquals('<fieldset class="collapse-wrapper">' . '<legend' . ' data-opened-indicator="<i class=&quot;glyphicon glyphicon-chevron-down&quot;></i>"' . ' data-closed-indicator="<i class=&quot;glyphicon glyphicon-chevron-right&quot;></i>"' . '>' . '<a data-toggle="collapse" href="#foo">' . '<i class="glyphicon glyphicon-chevron-right"></i> ' . 'bar' . '</a>' . '</legend>' . '<div class="collapse" id="foo"></div>' . '</fieldset>', $tag->getHTML());
 }