public function testDelElementByName() { $this->form->addElement('textarea')->setName('myTextareaElement'); $this->form->delElementByName('myTextareaElement'); $this->assertNull($this->form->getElementByName('myTextareaElement')); }