PopTest\Form\FormTest::testRemoveElement PHP Method

testRemoveElement() public method

public testRemoveElement ( )
    public function testRemoveElement()
    {
        $fields = array('username' => array('type' => 'text', 'value' => 'Username here...', 'label' => 'Username:', 'required' => true, 'attributes' => array('size' => 40)), 'email' => array('type' => 'text', 'label' => 'Email:', 'required' => true, 'attributes' => array('size' => 40)));
        $f = new Form('/submit', 'post');
        $f->addFields($fields);
        $f->removeElement('username');
        $this->assertEquals(1, count($f->getFields()));
    }