public function testActionBar() { $html = Form::actions(array(Button::primary_submit('Save changes'), Form::button('Cancel'))); $matcher = array('tag' => 'div', 'attributes' => array('class' => 'form-actions'), 'child' => array('tag' => 'button', 'attributes' => array('class' => 'btn-primary btn', 'type' => 'submit'), 'content' => 'Save changes'), 'descendant' => array('tag' => 'button', 'attributes' => array('class' => 'btn', 'type' => 'button'), 'content' => 'Cancel')); $this->assertTag($matcher, $html); }