Skip to content
6.1
Switch branches/tags
Code

Latest commit

…e's $body to mock transport errors (fancyweb)

This PR was merged into the 6.1 branch.

Discussion
----------

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

| 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).

Commits
-------

bbfe9d8 [HttpClient] Allow yielding Exception from MockResponse's $body to mock transport errors
0f03f94

Files

Permalink
Failed to load latest commit information.

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Symfony is used by thousands of web applications and most of the popular PHP projects.

Installation

Sponsor

Symfony 6.1 is backed by basecom.

As a professional software service provider, basecom implements customized solutions in the areas of e-commerce, PIM solutions and web portals. With our experience and certified expertise, we have been one of the most renowned Symfony specialists in Germany for many years.

Help Symfony by sponsoring its development!

Documentation

Community

Contributing

Symfony is an Open Source, community-driven project with thousands of contributors. Join them contributing code or contributing documentation.

Security Issues

If you discover a security vulnerability within Symfony, please follow our disclosure procedure.

About Us

Symfony development is led by the Symfony Core Team and supported by Symfony contributors.