public function testPrependAppend() { $html = Form::prepend_append(Form::text('inputfoo'), '$', '.00'); $matcher = array('tag' => 'input', 'attributes' => array('type' => 'text', 'name' => 'inputfoo', 'id' => 'inputfoo'), 'parent' => array('tag' => 'div', 'attributes' => array('class' => 'input-append'), 'child' => array('tag' => 'span', 'attributes' => array('class' => 'add-on'), 'content' => '$'), 'descendant' => array('tag' => 'span', 'attributes' => array('class' => 'add-on'), 'content' => '.00'))); $this->assertTag($matcher, $html); }