-
Notifications
You must be signed in to change notification settings - Fork 17
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
Provide psr/http-client-implementation in composer.json #38
Comments
So far this looks expected to me. The |
i agree with xabbuh on this. anyways it feels dangerous when this package "provides" the client implementation - a real project should always also have an actual implementation and only use the mock client for testing. or am i missing a use case here? i guess libraries with no functional tests would be one... but until we require httplug 2 we should not claim that we are psr-18 when we can't guarantee that. |
I have to agree, I was missing the hold compatibility with HTTPlug 1. So maybe a version 2.0 that only depends on HTTPlung 2 would make sense.
That's in fact exactly our use case. We have a library and just want to say: 'Throw any compatible client into the project and it will work'. For tests we only use recorded requests/responses from the wrapped API. |
i added this to #34 there are however no immediate plans to go release mock client 2.0. if you want to do a pull request against the branch we use in #34 i can see moving this forward however. the mock-client seems reasonably stable, version 1 will remain just usable for existing libraries that still allow httplug 1. |
this will happen in version 2, with #34 |
Actual Behavior
Package does provide only php-http/client-implementation
Expected Behavior
Package should also provide psr/http-client-implementation if fully compatible with PSR-18
Steps to Reproduce
Create a project with composer.json:
Composer install/update will fail with
Your requirements could not be resolved to an installable set of packages.
where it would succeed if I'd requirephp-http/client-implementation
instead.Possible Solutions
Add
psr/http-client-implementation
to composer.jsonprovides
section.The text was updated successfully, but these errors were encountered: