Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] improve MockResponse #30626

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

Merged
merged 1 commit into from
Mar 21, 2019

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

While working with MockHttpClient, we figured out these would be useful:

  • MockResponse::getRequestOptions() to get the options that were used when doing the request
  • relax the format of the raw_headers info and allow it to be defined as name=>value(s) pairs.

@nicolas-grekas nicolas-grekas added this to the next milestone Mar 21, 2019
@nicolas-grekas nicolas-grekas merged commit 26f6e28 into symfony:master Mar 21, 2019
nicolas-grekas added a commit that referenced this pull request Mar 21, 2019
This PR was merged into the 4.3-dev branch.

Discussion
----------

[HttpClient] improve MockResponse

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

While working with `MockHttpClient`, we figured out these would be useful:
 - `MockResponse::getRequestOptions()` to get the options that were used when doing the request
- relax the format of the `raw_headers` info and allow it to be defined as name=>value(s) pairs.

Commits
-------

26f6e28 [HttpClient] improve MockResponse
@nicolas-grekas nicolas-grekas deleted the hc-mock branch March 21, 2019 12:44
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants