{"action":"created","comment":{"url":"https://api.github.com/repos/M6Web/Redis/pulls/comments/25058987","id":25058987,"diff_hunk":"@@ -96,7 +93,38 @@ function() use ($proxy) {\n                 ->mock($predisClient)\n                     ->call('set')\n                     ->thrice();\n-\n     }\n-\n+    \n+    /**\n+     * \n+     */\n+     public function testSimulation()\n+     {\n+         $redis = new redisCache([\n+             'timeout' => 1,\n+             'server_config' => ['localhost' => ['ip' => 'localhost', 'port' => 6379]],\n+             'namespace' => 'test_proxy',\n+             'reconnect' => 0\n+         ]);\n+ \n+        // timeout to 10 seconds\n+        $predisClient = new Predis\\Client();\n+        $response = $predisClient->executeRaw(array('config', 'set', 'timeout', '10'));\n+        \n+        $this->assert\n+            ->object($redis->set('foo', 'raoul'));\n+        $this->assert\n+            ->string($redis->get('foo'))\n+            ->isEqualTo('raoul')\n+            ;\n+         \n+        sleep(20);\n+ \n+        $this->assert\n+            ->exception(\n+                function() use ($redis) {\n+                    $redis->get('foo');\n+                })\n+            ->isInstanceOf('Predis\\Connection\\ConnectionException');\n+    }","path":"tests/M6Web/Component/Redis/PredisProxy.php","position":66,"original_position":66,"commit_id":"d57c71b7df1dd6c025d9ad4811ab4811efcb25ba","original_commit_id":"d57c71b7df1dd6c025d9ad4811ab4811efcb25ba","user":{"login":"omansour","id":1131098,"avatar_url":"https://avatars.githubusercontent.com/u/1131098?v=3","gravatar_id":"","url":"https://api.github.com/users/omansour","html_url":"https://github.com/omansour","followers_url":"https://api.github.com/users/omansour/followers","following_url":"https://api.github.com/users/omansour/following{/other_user}","gists_url":"https://api.github.com/users/omansour/gists{/gist_id}","starred_url":"https://api.github.com/users/omansour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omansour/subscriptions","organizations_url":"https://api.github.com/users/omansour/orgs","repos_url":"https://api.github.com/users/omansour/repos","events_url":"https://api.github.com/users/omansour/events{/privacy}","received_events_url":"https://api.github.com/users/omansour/received_events","type":"User","site_admin":false},"body":"il faudrait éventuellement refaire le même test avec reconnect => 1 pour montrer que la reconnection marche :)","created_at":"2015-02-20T09:41:05Z","updated_at":"2015-02-20T09:41:05Z","html_url":"https://github.com/M6Web/Redis/pull/12#discussion_r25058987","pull_request_url":"https://api.github.com/repos/M6Web/Redis/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/M6Web/Redis/pulls/comments/25058987"},"html":{"href":"https://github.com/M6Web/Redis/pull/12#discussion_r25058987"},"pull_request":{"href":"https://api.github.com/repos/M6Web/Redis/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/M6Web/Redis/pulls/12","id":29515081,"html_url":"https://github.com/M6Web/Redis/pull/12","diff_url":"https://github.com/M6Web/Redis/pull/12.diff","patch_url":"https://github.com/M6Web/Redis/pull/12.patch","issue_url":"https://api.github.com/repos/M6Web/Redis/issues/12","number":12,"state":"open","locked":false,"title":"correction suite au passage à predis 1.0","user":{"login":"jdlabails","id":8875327,"avatar_url":"https://avatars.githubusercontent.com/u/8875327?v=3","gravatar_id":"","url":"https://api.github.com/users/jdlabails","html_url":"https://github.com/jdlabails","followers_url":"https://api.github.com/users/jdlabails/followers","following_url":"https://api.github.com/users/jdlabails/following{/other_user}","gists_url":"https://api.github.com/users/jdlabails/gists{/gist_id}","starred_url":"https://api.github.com/users/jdlabails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdlabails/subscriptions","organizations_url":"https://api.github.com/users/jdlabails/orgs","repos_url":"https://api.github.com/users/jdlabails/repos","events_url":"https://api.github.com/users/jdlabails/events{/privacy}","received_events_url":"https://api.github.com/users/jdlabails/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-18T10:35:56Z","updated_at":"2015-02-20T09:41:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e1d75ac0ffe6968a91ba2e1ec396123b0fc3be1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/M6Web/Redis/pulls/12/commits","review_comments_url":"https://api.github.com/repos/M6Web/Redis/pulls/12/comments","review_comment_url":"https://api.github.com/repos/M6Web/Redis/pulls/comments/{number}","comments_url":"https://api.github.com/repos/M6Web/Redis/issues/12/comments","statuses_url":"https://api.github.com/repos/M6Web/Redis/statuses/d57c71b7df1dd6c025d9ad4811ab4811efcb25ba","head":{"label":"jdlabails:master","ref":"master","sha":"d57c71b7df1dd6c025d9ad4811ab4811efcb25ba","user":{"login":"jdlabails","id":8875327,"avatar_url":"https://avatars.githubusercontent.com/u/8875327?v=3","gravatar_id":"","url":"https://api.github.com/users/jdlabails","html_url":"https://github.com/jdlabails","followers_url":"https://api.github.com/users/jdlabails/followers","following_url":"https://api.github.com/users/jdlabails/following{/other_user}","gists_url":"https://api.github.com/users/jdlabails/gists{/gist_id}","starred_url":"https://api.github.com/users/jdlabails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdlabails/subscriptions","organizations_url":"https://api.github.com/users/jdlabails/orgs","repos_url":"https://api.github.com/users/jdlabails/repos","events_url":"https://api.github.com/users/jdlabails/events{/privacy}","received_events_url":"https://api.github.com/users/jdlabails/received_events","type":"User","site_admin":false},"repo":{"id":30958492,"name":"Redis","full_name":"jdlabails/Redis","owner":{"login":"jdlabails","id":8875327,"avatar_url":"https://avatars.githubusercontent.com/u/8875327?v=3","gravatar_id":"","url":"https://api.github.com/users/jdlabails","html_url":"https://github.com/jdlabails","followers_url":"https://api.github.com/users/jdlabails/followers","following_url":"https://api.github.com/users/jdlabails/following{/other_user}","gists_url":"https://api.github.com/users/jdlabails/gists{/gist_id}","starred_url":"https://api.github.com/users/jdlabails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdlabails/subscriptions","organizations_url":"https://api.github.com/users/jdlabails/orgs","repos_url":"https://api.github.com/users/jdlabails/repos","events_url":"https://api.github.com/users/jdlabails/events{/privacy}","received_events_url":"https://api.github.com/users/jdlabails/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdlabails/Redis","description":"Component bind on top of predis ","fork":true,"url":"https://api.github.com/repos/jdlabails/Redis","forks_url":"https://api.github.com/repos/jdlabails/Redis/forks","keys_url":"https://api.github.com/repos/jdlabails/Redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdlabails/Redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdlabails/Redis/teams","hooks_url":"https://api.github.com/repos/jdlabails/Redis/hooks","issue_events_url":"https://api.github.com/repos/jdlabails/Redis/issues/events{/number}","events_url":"https://api.github.com/repos/jdlabails/Redis/events","assignees_url":"https://api.github.com/repos/jdlabails/Redis/assignees{/user}","branches_url":"https://api.github.com/repos/jdlabails/Redis/branches{/branch}","tags_url":"https://api.github.com/repos/jdlabails/Redis/tags","blobs_url":"https://api.github.com/repos/jdlabails/Redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdlabails/Redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdlabails/Redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdlabails/Redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdlabails/Redis/statuses/{sha}","languages_url":"https://api.github.com/repos/jdlabails/Redis/languages","stargazers_url":"https://api.github.com/repos/jdlabails/Redis/stargazers","contributors_url":"https://api.github.com/repos/jdlabails/Redis/contributors","subscribers_url":"https://api.github.com/repos/jdlabails/Redis/subscribers","subscription_url":"https://api.github.com/repos/jdlabails/Redis/subscription","commits_url":"https://api.github.com/repos/jdlabails/Redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdlabails/Redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdlabails/Redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdlabails/Redis/issues/comments/{number}","contents_url":"https://api.github.com/repos/jdlabails/Redis/contents/{+path}","compare_url":"https://api.github.com/repos/jdlabails/Redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdlabails/Redis/merges","archive_url":"https://api.github.com/repos/jdlabails/Redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdlabails/Redis/downloads","issues_url":"https://api.github.com/repos/jdlabails/Redis/issues{/number}","pulls_url":"https://api.github.com/repos/jdlabails/Redis/pulls{/number}","milestones_url":"https://api.github.com/repos/jdlabails/Redis/milestones{/number}","notifications_url":"https://api.github.com/repos/jdlabails/Redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdlabails/Redis/labels{/name}","releases_url":"https://api.github.com/repos/jdlabails/Redis/releases{/id}","created_at":"2015-02-18T09:05:51Z","updated_at":"2015-02-19T09:08:39Z","pushed_at":"2015-02-19T09:08:39Z","git_url":"git://github.com/jdlabails/Redis.git","ssh_url":"git@github.com:jdlabails/Redis.git","clone_url":"https://github.com/jdlabails/Redis.git","svn_url":"https://github.com/jdlabails/Redis","homepage":"","size":432,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"M6Web:master","ref":"master","sha":"54ed1581d0014dd5ca5556e86f4edd085c8f87f7","user":{"login":"M6Web","id":1485147,"avatar_url":"https://avatars.githubusercontent.com/u/1485147?v=3","gravatar_id":"","url":"https://api.github.com/users/M6Web","html_url":"https://github.com/M6Web","followers_url":"https://api.github.com/users/M6Web/followers","following_url":"https://api.github.com/users/M6Web/following{/other_user}","gists_url":"https://api.github.com/users/M6Web/gists{/gist_id}","starred_url":"https://api.github.com/users/M6Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M6Web/subscriptions","organizations_url":"https://api.github.com/users/M6Web/orgs","repos_url":"https://api.github.com/users/M6Web/repos","events_url":"https://api.github.com/users/M6Web/events{/privacy}","received_events_url":"https://api.github.com/users/M6Web/received_events","type":"Organization","site_admin":false},"repo":{"id":12890813,"name":"Redis","full_name":"M6Web/Redis","owner":{"login":"M6Web","id":1485147,"avatar_url":"https://avatars.githubusercontent.com/u/1485147?v=3","gravatar_id":"","url":"https://api.github.com/users/M6Web","html_url":"https://github.com/M6Web","followers_url":"https://api.github.com/users/M6Web/followers","following_url":"https://api.github.com/users/M6Web/following{/other_user}","gists_url":"https://api.github.com/users/M6Web/gists{/gist_id}","starred_url":"https://api.github.com/users/M6Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M6Web/subscriptions","organizations_url":"https://api.github.com/users/M6Web/orgs","repos_url":"https://api.github.com/users/M6Web/repos","events_url":"https://api.github.com/users/M6Web/events{/privacy}","received_events_url":"https://api.github.com/users/M6Web/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/M6Web/Redis","description":"Component bind on top of predis ","fork":false,"url":"https://api.github.com/repos/M6Web/Redis","forks_url":"https://api.github.com/repos/M6Web/Redis/forks","keys_url":"https://api.github.com/repos/M6Web/Redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/M6Web/Redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/M6Web/Redis/teams","hooks_url":"https://api.github.com/repos/M6Web/Redis/hooks","issue_events_url":"https://api.github.com/repos/M6Web/Redis/issues/events{/number}","events_url":"https://api.github.com/repos/M6Web/Redis/events","assignees_url":"https://api.github.com/repos/M6Web/Redis/assignees{/user}","branches_url":"https://api.github.com/repos/M6Web/Redis/branches{/branch}","tags_url":"https://api.github.com/repos/M6Web/Redis/tags","blobs_url":"https://api.github.com/repos/M6Web/Redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/M6Web/Redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/M6Web/Redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/M6Web/Redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/M6Web/Redis/statuses/{sha}","languages_url":"https://api.github.com/repos/M6Web/Redis/languages","stargazers_url":"https://api.github.com/repos/M6Web/Redis/stargazers","contributors_url":"https://api.github.com/repos/M6Web/Redis/contributors","subscribers_url":"https://api.github.com/repos/M6Web/Redis/subscribers","subscription_url":"https://api.github.com/repos/M6Web/Redis/subscription","commits_url":"https://api.github.com/repos/M6Web/Redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/M6Web/Redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/M6Web/Redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/M6Web/Redis/issues/comments/{number}","contents_url":"https://api.github.com/repos/M6Web/Redis/contents/{+path}","compare_url":"https://api.github.com/repos/M6Web/Redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/M6Web/Redis/merges","archive_url":"https://api.github.com/repos/M6Web/Redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/M6Web/Redis/downloads","issues_url":"https://api.github.com/repos/M6Web/Redis/issues{/number}","pulls_url":"https://api.github.com/repos/M6Web/Redis/pulls{/number}","milestones_url":"https://api.github.com/repos/M6Web/Redis/milestones{/number}","notifications_url":"https://api.github.com/repos/M6Web/Redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/M6Web/Redis/labels{/name}","releases_url":"https://api.github.com/repos/M6Web/Redis/releases{/id}","created_at":"2013-09-17T09:00:30Z","updated_at":"2015-02-18T08:03:51Z","pushed_at":"2015-02-18T08:08:23Z","git_url":"git://github.com/M6Web/Redis.git","ssh_url":"git@github.com:M6Web/Redis.git","clone_url":"https://github.com/M6Web/Redis.git","svn_url":"https://github.com/M6Web/Redis","homepage":"","size":432,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/M6Web/Redis/pulls/12"},"html":{"href":"https://github.com/M6Web/Redis/pull/12"},"issue":{"href":"https://api.github.com/repos/M6Web/Redis/issues/12"},"comments":{"href":"https://api.github.com/repos/M6Web/Redis/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/M6Web/Redis/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/M6Web/Redis/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/M6Web/Redis/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/M6Web/Redis/statuses/d57c71b7df1dd6c025d9ad4811ab4811efcb25ba"}}}}