{"action":"created","comment":{"url":"https://api.github.com/repos/giorgiosironi/eris/pulls/comments/59628270","id":59628270,"diff_hunk":"@@ -25,16 +27,46 @@ public function __construct($file, $time, $pid)\n         $this->pid = $pid;\n     }\n \n-    public function newGeneration(array $generatedValues, $iteration)\n+    public function newGeneration(array $generation, $iteration)\n     {\n-        $this->log(\"iteration $iteration\");\n+        $this->log(sprintf(\n+            \"iteration %d: %s\",\n+            $iteration,\n+            // TODO: duplication with collect\n+            json_encode(\n+                $generation\n+            )\n+        ));\n     }\n \n     public function endPropertyVerification($ordinaryEvaluations)\n     {\n         fclose($this->fp);\n     }\n \n+    public function failure(array $generation, Exception $exception)\n+    {\n+        $this->log(sprintf(\n+            \"failure: %s. %s\",\n+            // TODO: duplication with collect\n+            json_encode(\n+                $generation","path":"src/Eris/Listener/Log.php","position":38,"original_position":38,"commit_id":"8789cae9c891dc3040c1810ef7771564ff0bf584","original_commit_id":"8789cae9c891dc3040c1810ef7771564ff0bf584","user":{"login":"localheinz","id":605483,"avatar_url":"https://avatars.githubusercontent.com/u/605483?v=3","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"body":"@giorgiosironi \r\n\r\nCan we put this on one line instead?\r\n\r\n\r\n```php\r\n$this->log(sprintf(\r\n    \"failure: %s. %s\",\r\n    // TODO: duplication with collect\r\n    json_encode($generation),\r\n    $exception->getMessage()\r\n));\r\n```","created_at":"2016-04-13T21:23:11Z","updated_at":"2016-04-13T21:23:11Z","html_url":"https://github.com/giorgiosironi/eris/pull/70#discussion_r59628270","pull_request_url":"https://api.github.com/repos/giorgiosironi/eris/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/giorgiosironi/eris/pulls/comments/59628270"},"html":{"href":"https://github.com/giorgiosironi/eris/pull/70#discussion_r59628270"},"pull_request":{"href":"https://api.github.com/repos/giorgiosironi/eris/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/giorgiosironi/eris/pulls/70","id":64007754,"html_url":"https://github.com/giorgiosironi/eris/pull/70","diff_url":"https://github.com/giorgiosironi/eris/pull/70.diff","patch_url":"https://github.com/giorgiosironi/eris/pull/70.patch","issue_url":"https://api.github.com/repos/giorgiosironi/eris/issues/70","number":70,"state":"open","locked":false,"title":"Listeners can log failures and shrinking attempts","user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars.githubusercontent.com/u/160299?v=3","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"body":"Solves https://trello.com/c/3OeQFdkx/32-an-user-can-run-a-test-and-see-what-was-the-first-failed-example-and-the-following-shrinking-process","created_at":"2016-03-24T09:24:00Z","updated_at":"2016-04-13T21:23:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0466535a3ca88a72bfdcf5cfe762c6410b1fa49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/giorgiosironi/eris/pulls/70/commits","review_comments_url":"https://api.github.com/repos/giorgiosironi/eris/pulls/70/comments","review_comment_url":"https://api.github.com/repos/giorgiosironi/eris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/giorgiosironi/eris/issues/70/comments","statuses_url":"https://api.github.com/repos/giorgiosironi/eris/statuses/8789cae9c891dc3040c1810ef7771564ff0bf584","head":{"label":"giorgiosironi:listeners_failure_shrinking","ref":"listeners_failure_shrinking","sha":"8789cae9c891dc3040c1810ef7771564ff0bf584","user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars.githubusercontent.com/u/160299?v=3","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"repo":{"id":26714984,"name":"eris","full_name":"giorgiosironi/eris","owner":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars.githubusercontent.com/u/160299?v=3","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giorgiosironi/eris","description":"Eris is a porting of Quickcheck and property-based testing tools to the PHP and PHPUnit ecosystem.","fork":false,"url":"https://api.github.com/repos/giorgiosironi/eris","forks_url":"https://api.github.com/repos/giorgiosironi/eris/forks","keys_url":"https://api.github.com/repos/giorgiosironi/eris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giorgiosironi/eris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giorgiosironi/eris/teams","hooks_url":"https://api.github.com/repos/giorgiosironi/eris/hooks","issue_events_url":"https://api.github.com/repos/giorgiosironi/eris/issues/events{/number}","events_url":"https://api.github.com/repos/giorgiosironi/eris/events","assignees_url":"https://api.github.com/repos/giorgiosironi/eris/assignees{/user}","branches_url":"https://api.github.com/repos/giorgiosironi/eris/branches{/branch}","tags_url":"https://api.github.com/repos/giorgiosironi/eris/tags","blobs_url":"https://api.github.com/repos/giorgiosironi/eris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giorgiosironi/eris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giorgiosironi/eris/git/refs{/sha}","trees_url":"https://api.github.com/repos/giorgiosironi/eris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giorgiosironi/eris/statuses/{sha}","languages_url":"https://api.github.com/repos/giorgiosironi/eris/languages","stargazers_url":"https://api.github.com/repos/giorgiosironi/eris/stargazers","contributors_url":"https://api.github.com/repos/giorgiosironi/eris/contributors","subscribers_url":"https://api.github.com/repos/giorgiosironi/eris/subscribers","subscription_url":"https://api.github.com/repos/giorgiosironi/eris/subscription","commits_url":"https://api.github.com/repos/giorgiosironi/eris/commits{/sha}","git_commits_url":"https://api.github.com/repos/giorgiosironi/eris/git/commits{/sha}","comments_url":"https://api.github.com/repos/giorgiosironi/eris/comments{/number}","issue_comment_url":"https://api.github.com/repos/giorgiosironi/eris/issues/comments{/number}","contents_url":"https://api.github.com/repos/giorgiosironi/eris/contents/{+path}","compare_url":"https://api.github.com/repos/giorgiosironi/eris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giorgiosironi/eris/merges","archive_url":"https://api.github.com/repos/giorgiosironi/eris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giorgiosironi/eris/downloads","issues_url":"https://api.github.com/repos/giorgiosironi/eris/issues{/number}","pulls_url":"https://api.github.com/repos/giorgiosironi/eris/pulls{/number}","milestones_url":"https://api.github.com/repos/giorgiosironi/eris/milestones{/number}","notifications_url":"https://api.github.com/repos/giorgiosironi/eris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giorgiosironi/eris/labels{/name}","releases_url":"https://api.github.com/repos/giorgiosironi/eris/releases{/id}","deployments_url":"https://api.github.com/repos/giorgiosironi/eris/deployments","created_at":"2014-11-16T13:32:25Z","updated_at":"2016-03-29T23:24:24Z","pushed_at":"2016-04-12T09:06:08Z","git_url":"git://github.com/giorgiosironi/eris.git","ssh_url":"git@github.com:giorgiosironi/eris.git","clone_url":"https://github.com/giorgiosironi/eris.git","svn_url":"https://github.com/giorgiosironi/eris","homepage":"","size":1376,"stargazers_count":95,"watchers_count":95,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":95,"default_branch":"master"}},"base":{"label":"giorgiosironi:master","ref":"master","sha":"1f7dcf133cb75148459e02624133aab573c3a46b","user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars.githubusercontent.com/u/160299?v=3","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"repo":{"id":26714984,"name":"eris","full_name":"giorgiosironi/eris","owner":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars.githubusercontent.com/u/160299?v=3","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giorgiosironi/eris","description":"Eris is a porting of Quickcheck and property-based testing tools to the PHP and PHPUnit ecosystem.","fork":false,"url":"https://api.github.com/repos/giorgiosironi/eris","forks_url":"https://api.github.com/repos/giorgiosironi/eris/forks","keys_url":"https://api.github.com/repos/giorgiosironi/eris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giorgiosironi/eris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giorgiosironi/eris/teams","hooks_url":"https://api.github.com/repos/giorgiosironi/eris/hooks","issue_events_url":"https://api.github.com/repos/giorgiosironi/eris/issues/events{/number}","events_url":"https://api.github.com/repos/giorgiosironi/eris/events","assignees_url":"https://api.github.com/repos/giorgiosironi/eris/assignees{/user}","branches_url":"https://api.github.com/repos/giorgiosironi/eris/branches{/branch}","tags_url":"https://api.github.com/repos/giorgiosironi/eris/tags","blobs_url":"https://api.github.com/repos/giorgiosironi/eris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giorgiosironi/eris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giorgiosironi/eris/git/refs{/sha}","trees_url":"https://api.github.com/repos/giorgiosironi/eris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giorgiosironi/eris/statuses/{sha}","languages_url":"https://api.github.com/repos/giorgiosironi/eris/languages","stargazers_url":"https://api.github.com/repos/giorgiosironi/eris/stargazers","contributors_url":"https://api.github.com/repos/giorgiosironi/eris/contributors","subscribers_url":"https://api.github.com/repos/giorgiosironi/eris/subscribers","subscription_url":"https://api.github.com/repos/giorgiosironi/eris/subscription","commits_url":"https://api.github.com/repos/giorgiosironi/eris/commits{/sha}","git_commits_url":"https://api.github.com/repos/giorgiosironi/eris/git/commits{/sha}","comments_url":"https://api.github.com/repos/giorgiosironi/eris/comments{/number}","issue_comment_url":"https://api.github.com/repos/giorgiosironi/eris/issues/comments{/number}","contents_url":"https://api.github.com/repos/giorgiosironi/eris/contents/{+path}","compare_url":"https://api.github.com/repos/giorgiosironi/eris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giorgiosironi/eris/merges","archive_url":"https://api.github.com/repos/giorgiosironi/eris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giorgiosironi/eris/downloads","issues_url":"https://api.github.com/repos/giorgiosironi/eris/issues{/number}","pulls_url":"https://api.github.com/repos/giorgiosironi/eris/pulls{/number}","milestones_url":"https://api.github.com/repos/giorgiosironi/eris/milestones{/number}","notifications_url":"https://api.github.com/repos/giorgiosironi/eris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giorgiosironi/eris/labels{/name}","releases_url":"https://api.github.com/repos/giorgiosironi/eris/releases{/id}","deployments_url":"https://api.github.com/repos/giorgiosironi/eris/deployments","created_at":"2014-11-16T13:32:25Z","updated_at":"2016-03-29T23:24:24Z","pushed_at":"2016-04-12T09:06:08Z","git_url":"git://github.com/giorgiosironi/eris.git","ssh_url":"git@github.com:giorgiosironi/eris.git","clone_url":"https://github.com/giorgiosironi/eris.git","svn_url":"https://github.com/giorgiosironi/eris","homepage":"","size":1376,"stargazers_count":95,"watchers_count":95,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/giorgiosironi/eris/pulls/70"},"html":{"href":"https://github.com/giorgiosironi/eris/pull/70"},"issue":{"href":"https://api.github.com/repos/giorgiosironi/eris/issues/70"},"comments":{"href":"https://api.github.com/repos/giorgiosironi/eris/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/giorgiosironi/eris/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/giorgiosironi/eris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/giorgiosironi/eris/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/giorgiosironi/eris/statuses/8789cae9c891dc3040c1810ef7771564ff0bf584"}}}}