{"action":"created","comment":{"url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/comments/22714619","id":22714619,"diff_hunk":"@@ -0,0 +1,44 @@\n+<?php\n+\n+namespace Geek\\ToDoListBundle\\Tests\\Services;\n+\n+use Geek\\ToDoListBundle\\Services\\JobAnalyzer;\n+\n+class JobAnalyzerTest extends \\PHPUnit_Framework_TestCase\n+{\n+    /**\n+     * @dataProvider priorityPercentageProvider\n+     */\n+    public function testPriorityPercentage($low, $medium, $high, $expected)\n+    {\n+        $analizer = new JobAnalyzer();\n+        $result = $analizer->priorityPercentage($low, $medium, $high);\n+\n+        $this->assertEquals($expected, $result);\n+    }\n+\n+    public function priorityPercentageProvider()\n+    {\n+        return array(\n+            [1, 1, 1, [\n+                'low'    => 33.33,\n+                'medium' => 33.33,\n+                'high'   => 33.33\n+                ]\n+            ],\n+            [1, 2, 1, [\n+                'low'    => 25,\n+                'medium' => 50,\n+                'high'   => 25\n+                ]\n+            ],\n+            [3, 1, 4, [\n+                'low'    => 37.5,\n+                'medium' => 12.5,\n+                'high'   => 50\n+                ]\n+            ],\n+        );\n+    }\n+}\n+ ","path":"src/Geek/ToDoListBundle/Tests/Services/JobAnalyzerTest.php","position":44,"original_position":44,"commit_id":"60eb0c30b984b614b186848b1e508c18acd3476e","original_commit_id":"60eb0c30b984b614b186848b1e508c18acd3476e","user":{"login":"cystbear","id":412004,"avatar_url":"https://avatars.githubusercontent.com/u/412004?v=3","gravatar_id":"","url":"https://api.github.com/users/cystbear","html_url":"https://github.com/cystbear","followers_url":"https://api.github.com/users/cystbear/followers","following_url":"https://api.github.com/users/cystbear/following{/other_user}","gists_url":"https://api.github.com/users/cystbear/gists{/gist_id}","starred_url":"https://api.github.com/users/cystbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cystbear/subscriptions","organizations_url":"https://api.github.com/users/cystbear/orgs","repos_url":"https://api.github.com/users/cystbear/repos","events_url":"https://api.github.com/users/cystbear/events{/privacy}","received_events_url":"https://api.github.com/users/cystbear/received_events","type":"User","site_admin":false},"body":"@midori-no-risu will be angry like a hell.","created_at":"2015-01-09T13:07:36Z","updated_at":"2015-01-09T13:07:36Z","html_url":"https://github.com/alexandrzhulev/symproject/pull/8#discussion_r22714619","pull_request_url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/comments/22714619"},"html":{"href":"https://github.com/alexandrzhulev/symproject/pull/8#discussion_r22714619"},"pull_request":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8","id":26428960,"html_url":"https://github.com/alexandrzhulev/symproject/pull/8","diff_url":"https://github.com/alexandrzhulev/symproject/pull/8.diff","patch_url":"https://github.com/alexandrzhulev/symproject/pull/8.patch","issue_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues/8","number":8,"state":"open","locked":false,"title":"HW #6","user":{"login":"alexandrzhulev","id":6017132,"avatar_url":"https://avatars.githubusercontent.com/u/6017132?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrzhulev","html_url":"https://github.com/alexandrzhulev","followers_url":"https://api.github.com/users/alexandrzhulev/followers","following_url":"https://api.github.com/users/alexandrzhulev/following{/other_user}","gists_url":"https://api.github.com/users/alexandrzhulev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrzhulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrzhulev/subscriptions","organizations_url":"https://api.github.com/users/alexandrzhulev/orgs","repos_url":"https://api.github.com/users/alexandrzhulev/repos","events_url":"https://api.github.com/users/alexandrzhulev/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrzhulev/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-21T15:28:21Z","updated_at":"2015-01-09T13:07:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a569cd95e58ce0ab0902e188570b87ec39ebd2f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8/commits","review_comments_url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8/comments","review_comment_url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/comments/{number}","comments_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues/8/comments","statuses_url":"https://api.github.com/repos/alexandrzhulev/symproject/statuses/60eb0c30b984b614b186848b1e508c18acd3476e","head":{"label":"alexandrzhulev:develop_12_18","ref":"develop_12_18","sha":"60eb0c30b984b614b186848b1e508c18acd3476e","user":{"login":"alexandrzhulev","id":6017132,"avatar_url":"https://avatars.githubusercontent.com/u/6017132?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrzhulev","html_url":"https://github.com/alexandrzhulev","followers_url":"https://api.github.com/users/alexandrzhulev/followers","following_url":"https://api.github.com/users/alexandrzhulev/following{/other_user}","gists_url":"https://api.github.com/users/alexandrzhulev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrzhulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrzhulev/subscriptions","organizations_url":"https://api.github.com/users/alexandrzhulev/orgs","repos_url":"https://api.github.com/users/alexandrzhulev/repos","events_url":"https://api.github.com/users/alexandrzhulev/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrzhulev/received_events","type":"User","site_admin":false},"repo":{"id":26560932,"name":"symproject","full_name":"alexandrzhulev/symproject","owner":{"login":"alexandrzhulev","id":6017132,"avatar_url":"https://avatars.githubusercontent.com/u/6017132?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrzhulev","html_url":"https://github.com/alexandrzhulev","followers_url":"https://api.github.com/users/alexandrzhulev/followers","following_url":"https://api.github.com/users/alexandrzhulev/following{/other_user}","gists_url":"https://api.github.com/users/alexandrzhulev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrzhulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrzhulev/subscriptions","organizations_url":"https://api.github.com/users/alexandrzhulev/orgs","repos_url":"https://api.github.com/users/alexandrzhulev/repos","events_url":"https://api.github.com/users/alexandrzhulev/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrzhulev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexandrzhulev/symproject","description":"","fork":false,"url":"https://api.github.com/repos/alexandrzhulev/symproject","forks_url":"https://api.github.com/repos/alexandrzhulev/symproject/forks","keys_url":"https://api.github.com/repos/alexandrzhulev/symproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexandrzhulev/symproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexandrzhulev/symproject/teams","hooks_url":"https://api.github.com/repos/alexandrzhulev/symproject/hooks","issue_events_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues/events{/number}","events_url":"https://api.github.com/repos/alexandrzhulev/symproject/events","assignees_url":"https://api.github.com/repos/alexandrzhulev/symproject/assignees{/user}","branches_url":"https://api.github.com/repos/alexandrzhulev/symproject/branches{/branch}","tags_url":"https://api.github.com/repos/alexandrzhulev/symproject/tags","blobs_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexandrzhulev/symproject/statuses/{sha}","languages_url":"https://api.github.com/repos/alexandrzhulev/symproject/languages","stargazers_url":"https://api.github.com/repos/alexandrzhulev/symproject/stargazers","contributors_url":"https://api.github.com/repos/alexandrzhulev/symproject/contributors","subscribers_url":"https://api.github.com/repos/alexandrzhulev/symproject/subscribers","subscription_url":"https://api.github.com/repos/alexandrzhulev/symproject/subscription","commits_url":"https://api.github.com/repos/alexandrzhulev/symproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexandrzhulev/symproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues/comments/{number}","contents_url":"https://api.github.com/repos/alexandrzhulev/symproject/contents/{+path}","compare_url":"https://api.github.com/repos/alexandrzhulev/symproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexandrzhulev/symproject/merges","archive_url":"https://api.github.com/repos/alexandrzhulev/symproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexandrzhulev/symproject/downloads","issues_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues{/number}","pulls_url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls{/number}","milestones_url":"https://api.github.com/repos/alexandrzhulev/symproject/milestones{/number}","notifications_url":"https://api.github.com/repos/alexandrzhulev/symproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexandrzhulev/symproject/labels{/name}","releases_url":"https://api.github.com/repos/alexandrzhulev/symproject/releases{/id}","created_at":"2014-11-12T23:17:33Z","updated_at":"2014-12-11T10:14:03Z","pushed_at":"2015-01-05T15:53:30Z","git_url":"git://github.com/alexandrzhulev/symproject.git","ssh_url":"git@github.com:alexandrzhulev/symproject.git","clone_url":"https://github.com/alexandrzhulev/symproject.git","svn_url":"https://github.com/alexandrzhulev/symproject","homepage":null,"size":1228,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alexandrzhulev:develop","ref":"develop","sha":"9b5403cf25a9bf77a0c401a54afcfa0f32656353","user":{"login":"alexandrzhulev","id":6017132,"avatar_url":"https://avatars.githubusercontent.com/u/6017132?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrzhulev","html_url":"https://github.com/alexandrzhulev","followers_url":"https://api.github.com/users/alexandrzhulev/followers","following_url":"https://api.github.com/users/alexandrzhulev/following{/other_user}","gists_url":"https://api.github.com/users/alexandrzhulev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrzhulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrzhulev/subscriptions","organizations_url":"https://api.github.com/users/alexandrzhulev/orgs","repos_url":"https://api.github.com/users/alexandrzhulev/repos","events_url":"https://api.github.com/users/alexandrzhulev/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrzhulev/received_events","type":"User","site_admin":false},"repo":{"id":26560932,"name":"symproject","full_name":"alexandrzhulev/symproject","owner":{"login":"alexandrzhulev","id":6017132,"avatar_url":"https://avatars.githubusercontent.com/u/6017132?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrzhulev","html_url":"https://github.com/alexandrzhulev","followers_url":"https://api.github.com/users/alexandrzhulev/followers","following_url":"https://api.github.com/users/alexandrzhulev/following{/other_user}","gists_url":"https://api.github.com/users/alexandrzhulev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrzhulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrzhulev/subscriptions","organizations_url":"https://api.github.com/users/alexandrzhulev/orgs","repos_url":"https://api.github.com/users/alexandrzhulev/repos","events_url":"https://api.github.com/users/alexandrzhulev/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrzhulev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexandrzhulev/symproject","description":"","fork":false,"url":"https://api.github.com/repos/alexandrzhulev/symproject","forks_url":"https://api.github.com/repos/alexandrzhulev/symproject/forks","keys_url":"https://api.github.com/repos/alexandrzhulev/symproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexandrzhulev/symproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexandrzhulev/symproject/teams","hooks_url":"https://api.github.com/repos/alexandrzhulev/symproject/hooks","issue_events_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues/events{/number}","events_url":"https://api.github.com/repos/alexandrzhulev/symproject/events","assignees_url":"https://api.github.com/repos/alexandrzhulev/symproject/assignees{/user}","branches_url":"https://api.github.com/repos/alexandrzhulev/symproject/branches{/branch}","tags_url":"https://api.github.com/repos/alexandrzhulev/symproject/tags","blobs_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexandrzhulev/symproject/statuses/{sha}","languages_url":"https://api.github.com/repos/alexandrzhulev/symproject/languages","stargazers_url":"https://api.github.com/repos/alexandrzhulev/symproject/stargazers","contributors_url":"https://api.github.com/repos/alexandrzhulev/symproject/contributors","subscribers_url":"https://api.github.com/repos/alexandrzhulev/symproject/subscribers","subscription_url":"https://api.github.com/repos/alexandrzhulev/symproject/subscription","commits_url":"https://api.github.com/repos/alexandrzhulev/symproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexandrzhulev/symproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexandrzhulev/symproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues/comments/{number}","contents_url":"https://api.github.com/repos/alexandrzhulev/symproject/contents/{+path}","compare_url":"https://api.github.com/repos/alexandrzhulev/symproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexandrzhulev/symproject/merges","archive_url":"https://api.github.com/repos/alexandrzhulev/symproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexandrzhulev/symproject/downloads","issues_url":"https://api.github.com/repos/alexandrzhulev/symproject/issues{/number}","pulls_url":"https://api.github.com/repos/alexandrzhulev/symproject/pulls{/number}","milestones_url":"https://api.github.com/repos/alexandrzhulev/symproject/milestones{/number}","notifications_url":"https://api.github.com/repos/alexandrzhulev/symproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexandrzhulev/symproject/labels{/name}","releases_url":"https://api.github.com/repos/alexandrzhulev/symproject/releases{/id}","created_at":"2014-11-12T23:17:33Z","updated_at":"2014-12-11T10:14:03Z","pushed_at":"2015-01-05T15:53:30Z","git_url":"git://github.com/alexandrzhulev/symproject.git","ssh_url":"git@github.com:alexandrzhulev/symproject.git","clone_url":"https://github.com/alexandrzhulev/symproject.git","svn_url":"https://github.com/alexandrzhulev/symproject","homepage":null,"size":1228,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8"},"html":{"href":"https://github.com/alexandrzhulev/symproject/pull/8"},"issue":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/issues/8"},"comments":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/alexandrzhulev/symproject/statuses/60eb0c30b984b614b186848b1e508c18acd3476e"}}}}