Esempio n. 1
0
 public function testChangeType()
 {
     $tag = new Label('foo', Label::TYPE_PRIMARY);
     $tag->changeType(Label::TYPE_INFO);
     $this->assertEquals('<span class="label label-info">foo</span>', $tag->getHTML());
     $tag->changeType(Label::TYPE_SUCCESS);
     $this->assertEquals('<span class="label label-success">foo</span>', $tag->getHTML());
 }
Esempio n. 2
0
 /**
  * @param string $type
  * @return $this
  */
 public function type($type)
 {
     $this->uiElement->changeType($type);
     return $this;
 }