Example #1
0
 public function testAppendButtons()
 {
     $html = Form::append_buttons(Form::span2_text('appendedInputButton'), array(Form::button('Search'), Form::button('Options')));
     $matcher = array('tag' => 'input', 'attributes' => array('class' => 'span2', 'type' => 'text', 'name' => 'appendedInputButton'), 'parent' => array('tag' => 'div', 'attributes' => array('class' => 'input-append'), 'child' => array('tag' => 'button', 'attributes' => array('class' => 'btn', 'type' => 'button'), 'content' => 'Search'), 'descendant' => array('tag' => 'button', 'attributes' => array('class' => 'btn', 'type' => 'button'), 'content' => 'Options')));
     $this->assertHTML($matcher, $html);
 }