Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoh committed Aug 18, 2011
1 parent b6ee1a6 commit a1d9fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Symfony/Tests/Component/HttpFoundation/RequestTest.php
Expand Up @@ -486,12 +486,12 @@ public function testGetSetMethod()
$this->assertEquals('PURGE', $request->getMethod(), '->getMethod() returns the method from _method if defined and POST');

$request->setMethod('POST');
$request->server->set('X-HTTP-METHOD-OVERRIDE', 'delete');
$request->headers->set('X-HTTP-METHOD-OVERRIDE', 'delete');
$this->assertEquals('DELETE', $request->getMethod(), '->getMethod() returns the method from X-HTTP-Method-Override even though _method is set if defined and POST');

$request = new Request();
$request->setMethod('POST');
$request->server->set('X-HTTP-METHOD-OVERRIDE', 'delete');
$request->headers->set('X-HTTP-METHOD-OVERRIDE', 'delete');
$this->assertEquals('DELETE', $request->getMethod(), '->getMethod() returns the method from X-HTTP-Method-Override if defined and POST');
}

Expand Down

0 comments on commit a1d9fed

Please sign in to comment.