/** * @covers ::getMethod */ public function testGetMethod() { $this->assertEquals('post', $this->form->getMethod()); $this->form->setAttribute('method', 'get'); $this->assertEquals('get', $this->form->getMethod()); $this->form->removeAttribute('method'); $this->assertEquals('GET', $this->form->getMethod()); }