示例#1
0
 public function testCanBeCastToString()
 {
     $text = new Text('email');
     $expected = $text->render();
     $result = (string) $text;
     $this->assertEquals($expected, $result);
 }
示例#2
0
 public function render()
 {
     $html = '<div class="input-group">';
     $html .= $this->renderAddons($this->beforeAddon);
     $html .= parent::render();
     $html .= $this->renderAddons($this->afterAddon);
     $html .= '</div>';
     return $html;
 }