[HttpFoundation] Add more tests for casing

This commit is contained in:
Drak 2012-04-06 17:10:55 +05:45
parent aec133996e
commit 33881ddd30

View File

@ -930,11 +930,15 @@ class RequestTest extends \PHPUnit_Framework_TestCase
$request = new Request();
$request->setMethod('POST');
$this->assertTrue($request->isMethod('POST'));
$this->assertTrue($request->isMethod('post'));
$this->assertFalse($request->isMethod('GET'));
$this->assertFalse($request->isMethod('get'));
$request->setMethod('GET');
$this->assertTrue($request->isMethod('GET'));
$this->assertTrue($request->isMethod('get'));
$this->assertFalse($request->isMethod('POST'));
$this->assertFalse($request->isMethod('post'));
}
private function startTrustingProxyData()