public function testGetElementByPosition() { $this->form->addElement('text'); $formelements_array = $this->form->getFormelements(); $this->assertIdentical($formelements_array['0'], $this->form->getElementByPosition(0)); }