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

[HttpClient] Allow yielding Exception from MockResponse's $body to mock transport errors #44568

Merged
merged 1 commit into from Dec 18, 2021

Conversation

@fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Dec 11, 2021

Q A
Branch? 6.1
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

A minor DX feature to allow simulating error chunks more easily (instead of being forced to throw from a \Generator).

@carsonbot carsonbot added this to the 6.1 milestone Dec 11, 2021
@fancyweb fancyweb force-pushed the http-client/mock-response-exception branch 2 times, most recently from a7092dd to 13d234c Dec 11, 2021
src/Symfony/Component/HttpClient/CHANGELOG.md Outdated Show resolved Hide resolved
@fancyweb fancyweb force-pushed the http-client/mock-response-exception branch from 13d234c to bbfe9d8 Dec 11, 2021
@fancyweb fancyweb changed the title [HttpClient] Allow passing an exception directly in the MockResponse body [HttpClient] Allow yielding Exception from MockResponse's $body to mock transport errors Dec 11, 2021
@fancyweb fancyweb merged commit 0f03f94 into symfony:6.1 Dec 18, 2021
9 checks passed
@fancyweb fancyweb deleted the http-client/mock-response-exception branch Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants