'HTTPS' => 'on',
'HTTP_PREFER' => 'safe, unknown-preference=42',
],
true,
],
];
} public function testReservedFlags() { foreach ((new \
ReflectionClass(Request::
class))->
getConstants() as $constant =>
$value) { $this->
assertNotSame(0b10000000,
$value,
sprintf('The constant "%s" should not use the reserved value "0b10000000".',
$constant));
} } /**
* @group legacy
*/
public function testInvalidUriCreationDeprecated() { $this->
expectDeprecation('Since symfony/http-foundation 6.3: Calling "Symfony\Component\HttpFoundation\Request::create()" with an invalid URI is deprecated.'
);
Request::
create('/invalid-path:123'
);
}