[9.x] Improve test for HttpRequestClass (#44039)
[9.x] Improve test for HttpRequestClass (#44039)

* [9.x] Improve test for HttpRequestClass

* [9.x] Improve test for HttpRequestClass

* [9.x] Improve test for HttpRequestClass

solve test fail in 8.1
arturock/framework,driesvints/framework,hafezdivandari/framework,driesvints/framework,lucasmichot/framework,hafezdivandari/framework,arturock/framework,arturock/framework,lucasmichot/framework,laravel/framework,laravel/framework