public function testGetPassword() { $request = Request::
create('http://user:password@test.com'
);
$password =
$request->
getPassword();
$this->
assertEquals('password',
$password);
} public function testIsNoCache() { $request =
new Request();
$isNoCache =
$request->
isNoCache();
$this->
assertFalse($isNoCache);
} /**
* @group legacy
*/
public function testGetContentType() { $this->
expectDeprecation('Since symfony/http-foundation 6.2: The "Symfony\Component\HttpFoundation\Request::getContentType()" method is deprecated, use "getContentTypeFormat()" instead.'
);
$request =
new Request();