diff options
Diffstat (limited to 'tests/src/Http/HttpWorker.php')
-rw-r--r-- | tests/src/Http/HttpWorker.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/Http/HttpWorker.php b/tests/src/Http/HttpWorker.php index 13fd6c27..ba045d87 100644 --- a/tests/src/Http/HttpWorker.php +++ b/tests/src/Http/HttpWorker.php @@ -91,10 +91,12 @@ class HttpWorker $request->protocol = $context['protocol']; $request->method = $context['method']; $request->uri = $context['uri']; - $request->attributes = $context['attributes']; + $request->attributes = $context['attributes'] ?? []; $request->headers = $context['headers']; - $request->cookies = $context['cookies']; - $request->uploads = $context['uploads']; + $request->cookies = $context['cookies'] ?? []; + $request->uploads = $context['uploads'] ?? []; + + $request->query = []; parse_str($context['rawQuery'], $request->query); // indicates that body was parsed |