[HttpFoundation] Add more tests for casing
This commit is contained in:
parent
aec133996e
commit
33881ddd30
@ -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()
|
||||
|
Reference in New Issue
Block a user