lithium\tests\cases\template\helper\FormTest::testFormFieldWithCustomTemplate PHP Method

testFormFieldWithCustomTemplate() public method

    public function testFormFieldWithCustomTemplate()
    {
        $result = $this->form->field('name', array('template' => '<div{:wrap}>{:label}: {:input}{:error}</div>'));
        $this->assertTags($result, array('div' => array(), 'label' => array('for' => 'Name'), 'Name', '/label', ':', 'input' => array('type' => 'text', 'name' => 'name', 'id' => 'Name')));
    }
FormTest