Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FakeHttp add method getJsonParsedBody #61

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

gam6itko
Copy link
Contributor

Now we can do like this

$response = $http->get('/get/query-params', $arr);
self::assertSame(
    $arr,
    $response->getJsonParsedBody()
);

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.18% 🎉

Comparison is base (763ce92) 40.60% compared to head (5ec21de) 40.79%.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x      #61      +/-   ##
============================================
+ Coverage     40.60%   40.79%   +0.18%     
- Complexity      309      310       +1     
============================================
  Files            33       33              
  Lines           953      956       +3     
============================================
+ Hits            387      390       +3     
  Misses          566      566              
Files Changed Coverage Δ
src/Http/TestResponse.php 38.04% <100.00%> (+2.08%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@butschster butschster self-requested a review September 20, 2023 11:00
@butschster butschster self-assigned this Sep 20, 2023
@butschster butschster added the enhancement New feature or request label Sep 20, 2023
@butschster butschster merged commit c217343 into spiral:2.x Sep 20, 2023
@gam6itko gam6itko deleted the get_json_parsed_body branch September 20, 2023 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants