{"action":"created","issue":{"url":"https://api.github.com/repos/there4/slim-test-helpers/issues/17","labels_url":"https://api.github.com/repos/there4/slim-test-helpers/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/there4/slim-test-helpers/issues/17/comments","events_url":"https://api.github.com/repos/there4/slim-test-helpers/issues/17/events","html_url":"https://github.com/there4/slim-test-helpers/pull/17","id":94082645,"number":17,"title":"Fix #15 - allow to run multiple requests in the same test","user":{"login":"masterzen","id":20242,"avatar_url":"https://avatars.githubusercontent.com/u/20242?v=3","gravatar_id":"","url":"https://api.github.com/users/masterzen","html_url":"https://github.com/masterzen","followers_url":"https://api.github.com/users/masterzen/followers","following_url":"https://api.github.com/users/masterzen/following{/other_user}","gists_url":"https://api.github.com/users/masterzen/gists{/gist_id}","starred_url":"https://api.github.com/users/masterzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterzen/subscriptions","organizations_url":"https://api.github.com/users/masterzen/orgs","repos_url":"https://api.github.com/users/masterzen/repos","events_url":"https://api.github.com/users/masterzen/events{/privacy}","received_events_url":"https://api.github.com/users/masterzen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-09T15:41:38Z","updated_at":"2015-07-09T15:46:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/there4/slim-test-helpers/pulls/17","html_url":"https://github.com/there4/slim-test-helpers/pull/17","diff_url":"https://github.com/there4/slim-test-helpers/pull/17.diff","patch_url":"https://github.com/there4/slim-test-helpers/pull/17.patch"},"body":"It turns out (at least in Slim 2.6) that the request (and the response)\r\nare a singleton in the Slim app.\r\nThus even when mocking a new \\Slim\\Environment like the WebTestclient does,\r\nyou'll always get the previous request that points to the previous\r\nenvironment (and thus the previous endpoint).\r\n\r\nThe idea is to create fresh request and response object on every client\r\ncall, and also override the matched route cache that is built into\r\nthe router.\r\n"},"comment":{"url":"https://api.github.com/repos/there4/slim-test-helpers/issues/comments/120042962","html_url":"https://github.com/there4/slim-test-helpers/pull/17#issuecomment-120042962","issue_url":"https://api.github.com/repos/there4/slim-test-helpers/issues/17","id":120042962,"user":{"login":"craig-davis","id":9907304,"avatar_url":"https://avatars.githubusercontent.com/u/9907304?v=3","gravatar_id":"","url":"https://api.github.com/users/craig-davis","html_url":"https://github.com/craig-davis","followers_url":"https://api.github.com/users/craig-davis/followers","following_url":"https://api.github.com/users/craig-davis/following{/other_user}","gists_url":"https://api.github.com/users/craig-davis/gists{/gist_id}","starred_url":"https://api.github.com/users/craig-davis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craig-davis/subscriptions","organizations_url":"https://api.github.com/users/craig-davis/orgs","repos_url":"https://api.github.com/users/craig-davis/repos","events_url":"https://api.github.com/users/craig-davis/events{/privacy}","received_events_url":"https://api.github.com/users/craig-davis/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T15:46:03Z","updated_at":"2015-07-09T15:46:03Z","body":"Hi @masterzen - This looks great. I've added you as a contributor. When you accept that invitation you should be able to do the merge and release if you have time. I'm buried at the moment, and it will be a bit before I can get to it. I am very excited to see this project continue to build momentum. \r\n\r\nWhen the TravisCI build passes - go for it!"}}