{"action":"created","issue":{"url":"https://api.github.com/repos/php-http/httplug/issues/89","labels_url":"https://api.github.com/repos/php-http/httplug/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/php-http/httplug/issues/89/comments","events_url":"https://api.github.com/repos/php-http/httplug/issues/89/events","html_url":"https://github.com/php-http/httplug/issues/89","id":120861638,"number":89,"title":"Mock client","user":{"login":"ddeboer","id":89267,"avatar_url":"https://avatars.githubusercontent.com/u/89267?v=3","gravatar_id":"","url":"https://api.github.com/users/ddeboer","html_url":"https://github.com/ddeboer","followers_url":"https://api.github.com/users/ddeboer/followers","following_url":"https://api.github.com/users/ddeboer/following{/other_user}","gists_url":"https://api.github.com/users/ddeboer/gists{/gist_id}","starred_url":"https://api.github.com/users/ddeboer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddeboer/subscriptions","organizations_url":"https://api.github.com/users/ddeboer/orgs","repos_url":"https://api.github.com/users/ddeboer/repos","events_url":"https://api.github.com/users/ddeboer/events{/privacy}","received_events_url":"https://api.github.com/users/ddeboer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-07T20:34:48Z","updated_at":"2015-12-16T08:46:37Z","closed_at":null,"body":"Goal: a lightweight client that can act as a test double, inspired by the [one in FOSHttpCache](https://github.com/FriendsOfSymfony/FOSHttpCache/blob/6a3f996f43cdddabd60b4dc02541e49748f2aa09/src/Test/HttpClient/MockHttpAdapter.php#L19-L19).\r\n\r\n1. Where should it go? We currently have php-http/mock-adapter and php-http/utils.\r\n2. How will we return responses? \r\n  * Depend on discovery to instantiate a response or create a separate `MockResponse`? The latter may be a lot of work, though, because `ResponseInterface` includes the `with…()` change methods. \r\n  * Alternatively, only have the MockClient return responses that have been set beforehand (so no default 200 response)."},"comment":{"url":"https://api.github.com/repos/php-http/httplug/issues/comments/165034701","html_url":"https://github.com/php-http/httplug/issues/89#issuecomment-165034701","issue_url":"https://api.github.com/repos/php-http/httplug/issues/89","id":165034701,"user":{"login":"dbu","id":76576,"avatar_url":"https://avatars.githubusercontent.com/u/76576?v=3","gravatar_id":"","url":"https://api.github.com/users/dbu","html_url":"https://github.com/dbu","followers_url":"https://api.github.com/users/dbu/followers","following_url":"https://api.github.com/users/dbu/following{/other_user}","gists_url":"https://api.github.com/users/dbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbu/subscriptions","organizations_url":"https://api.github.com/users/dbu/orgs","repos_url":"https://api.github.com/users/dbu/repos","events_url":"https://api.github.com/users/dbu/events{/privacy}","received_events_url":"https://api.github.com/users/dbu/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T08:46:36Z","updated_at":"2015-12-16T08:46:36Z","body":"yep, that would be consistent with utils. and client-integration-tests\nfor HTTPlug conformance?\n"}}