Symfony\Component\DomCrawler\Tests\FormTest::testGetMethodWithOverride PHP Method

testGetMethodWithOverride() public method

    public function testGetMethodWithOverride()
    {
        $form = $this->createForm('<form method="get"><input type="submit" formmethod="post" /></form>');
        $this->assertEquals('POST', $form->getMethod(), '->getMethod() returns the method attribute value of the form');
    }