{"action":"created","comment":{"url":"https://api.github.com/repos/Block8/PHPCI/pulls/comments/28687607","id":28687607,"diff_hunk":"@@ -0,0 +1,153 @@\n+<?php\n+namespace PHPCI\\Plugin\\Tests;\n+\n+use PHPCI\\Plugin\\Stash as StashPlugin;\n+\n+class StashTest extends \\PHPUnit_Framework_TestCase\n+{\n+    /**\n+     * @var \\PHPUnit_Framework_MockObject_MockObject $mockCiBuilder\n+     */\n+    protected $mockCiBuilder;\n+    /**\n+     * @var \\PHPUnit_Framework_MockObject_MockObject $mockBuild\n+     */\n+    protected $mockBuild;\n+    /**\n+     * @var \\PHPUnit_Framework_MockObject_MockObject $mockProject\n+     */\n+    protected $mockProject;\n+\n+    public function setUp()\n+    {\n+        $this->mockProject = $this->getMock(","path":"Tests/PHPCI/Plugin/StashTest.php","position":23,"original_position":23,"commit_id":"0d88bb2de342f5527f6f6679c80adc648b7129e5","original_commit_id":"0d88bb2de342f5527f6f6679c80adc648b7129e5","user":{"login":"mavimo","id":43941,"avatar_url":"https://avatars.githubusercontent.com/u/43941?v=3","gravatar_id":"","url":"https://api.github.com/users/mavimo","html_url":"https://github.com/mavimo","followers_url":"https://api.github.com/users/mavimo/followers","following_url":"https://api.github.com/users/mavimo/following{/other_user}","gists_url":"https://api.github.com/users/mavimo/gists{/gist_id}","starred_url":"https://api.github.com/users/mavimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavimo/subscriptions","organizations_url":"https://api.github.com/users/mavimo/orgs","repos_url":"https://api.github.com/users/mavimo/repos","events_url":"https://api.github.com/users/mavimo/events{/privacy}","received_events_url":"https://api.github.com/users/mavimo/received_events","type":"User","site_admin":false},"body":"Can you use Phropecy to mock objects? Thx!","created_at":"2015-04-20T13:28:31Z","updated_at":"2015-04-20T13:28:31Z","html_url":"https://github.com/Block8/PHPCI/pull/918#discussion_r28687607","pull_request_url":"https://api.github.com/repos/Block8/PHPCI/pulls/918","_links":{"self":{"href":"https://api.github.com/repos/Block8/PHPCI/pulls/comments/28687607"},"html":{"href":"https://github.com/Block8/PHPCI/pull/918#discussion_r28687607"},"pull_request":{"href":"https://api.github.com/repos/Block8/PHPCI/pulls/918"}}},"pull_request":{"url":"https://api.github.com/repos/Block8/PHPCI/pulls/918","id":33501396,"html_url":"https://github.com/Block8/PHPCI/pull/918","diff_url":"https://github.com/Block8/PHPCI/pull/918.diff","patch_url":"https://github.com/Block8/PHPCI/pull/918.patch","issue_url":"https://api.github.com/repos/Block8/PHPCI/issues/918","number":918,"state":"open","locked":false,"title":"Add Stash Plugin - needs php5-curl installed","user":{"login":"alasdairdc","id":2862157,"avatar_url":"https://avatars.githubusercontent.com/u/2862157?v=3","gravatar_id":"","url":"https://api.github.com/users/alasdairdc","html_url":"https://github.com/alasdairdc","followers_url":"https://api.github.com/users/alasdairdc/followers","following_url":"https://api.github.com/users/alasdairdc/following{/other_user}","gists_url":"https://api.github.com/users/alasdairdc/gists{/gist_id}","starred_url":"https://api.github.com/users/alasdairdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alasdairdc/subscriptions","organizations_url":"https://api.github.com/users/alasdairdc/orgs","repos_url":"https://api.github.com/users/alasdairdc/repos","events_url":"https://api.github.com/users/alasdairdc/events{/privacy}","received_events_url":"https://api.github.com/users/alasdairdc/received_events","type":"User","site_admin":false},"body":"Uses php-curl to send data to Atlassian Stash rest API to integrate build status.","created_at":"2015-04-16T23:07:37Z","updated_at":"2015-04-20T13:28:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b26f4cf8ef9fadec6a739d1c4ee3e5ba5fbf534c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Block8/PHPCI/pulls/918/commits","review_comments_url":"https://api.github.com/repos/Block8/PHPCI/pulls/918/comments","review_comment_url":"https://api.github.com/repos/Block8/PHPCI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Block8/PHPCI/issues/918/comments","statuses_url":"https://api.github.com/repos/Block8/PHPCI/statuses/0d88bb2de342f5527f6f6679c80adc648b7129e5","head":{"label":"alasdairdc:master","ref":"master","sha":"0d88bb2de342f5527f6f6679c80adc648b7129e5","user":{"login":"alasdairdc","id":2862157,"avatar_url":"https://avatars.githubusercontent.com/u/2862157?v=3","gravatar_id":"","url":"https://api.github.com/users/alasdairdc","html_url":"https://github.com/alasdairdc","followers_url":"https://api.github.com/users/alasdairdc/followers","following_url":"https://api.github.com/users/alasdairdc/following{/other_user}","gists_url":"https://api.github.com/users/alasdairdc/gists{/gist_id}","starred_url":"https://api.github.com/users/alasdairdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alasdairdc/subscriptions","organizations_url":"https://api.github.com/users/alasdairdc/orgs","repos_url":"https://api.github.com/users/alasdairdc/repos","events_url":"https://api.github.com/users/alasdairdc/events{/privacy}","received_events_url":"https://api.github.com/users/alasdairdc/received_events","type":"User","site_admin":false},"repo":{"id":34085125,"name":"PHPCI","full_name":"alasdairdc/PHPCI","owner":{"login":"alasdairdc","id":2862157,"avatar_url":"https://avatars.githubusercontent.com/u/2862157?v=3","gravatar_id":"","url":"https://api.github.com/users/alasdairdc","html_url":"https://github.com/alasdairdc","followers_url":"https://api.github.com/users/alasdairdc/followers","following_url":"https://api.github.com/users/alasdairdc/following{/other_user}","gists_url":"https://api.github.com/users/alasdairdc/gists{/gist_id}","starred_url":"https://api.github.com/users/alasdairdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alasdairdc/subscriptions","organizations_url":"https://api.github.com/users/alasdairdc/orgs","repos_url":"https://api.github.com/users/alasdairdc/repos","events_url":"https://api.github.com/users/alasdairdc/events{/privacy}","received_events_url":"https://api.github.com/users/alasdairdc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alasdairdc/PHPCI","description":"PHPCI is a free and open source continuous integration tool specifically designed for PHP.","fork":true,"url":"https://api.github.com/repos/alasdairdc/PHPCI","forks_url":"https://api.github.com/repos/alasdairdc/PHPCI/forks","keys_url":"https://api.github.com/repos/alasdairdc/PHPCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alasdairdc/PHPCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alasdairdc/PHPCI/teams","hooks_url":"https://api.github.com/repos/alasdairdc/PHPCI/hooks","issue_events_url":"https://api.github.com/repos/alasdairdc/PHPCI/issues/events{/number}","events_url":"https://api.github.com/repos/alasdairdc/PHPCI/events","assignees_url":"https://api.github.com/repos/alasdairdc/PHPCI/assignees{/user}","branches_url":"https://api.github.com/repos/alasdairdc/PHPCI/branches{/branch}","tags_url":"https://api.github.com/repos/alasdairdc/PHPCI/tags","blobs_url":"https://api.github.com/repos/alasdairdc/PHPCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alasdairdc/PHPCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alasdairdc/PHPCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/alasdairdc/PHPCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alasdairdc/PHPCI/statuses/{sha}","languages_url":"https://api.github.com/repos/alasdairdc/PHPCI/languages","stargazers_url":"https://api.github.com/repos/alasdairdc/PHPCI/stargazers","contributors_url":"https://api.github.com/repos/alasdairdc/PHPCI/contributors","subscribers_url":"https://api.github.com/repos/alasdairdc/PHPCI/subscribers","subscription_url":"https://api.github.com/repos/alasdairdc/PHPCI/subscription","commits_url":"https://api.github.com/repos/alasdairdc/PHPCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/alasdairdc/PHPCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/alasdairdc/PHPCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/alasdairdc/PHPCI/issues/comments{/number}","contents_url":"https://api.github.com/repos/alasdairdc/PHPCI/contents/{+path}","compare_url":"https://api.github.com/repos/alasdairdc/PHPCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alasdairdc/PHPCI/merges","archive_url":"https://api.github.com/repos/alasdairdc/PHPCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alasdairdc/PHPCI/downloads","issues_url":"https://api.github.com/repos/alasdairdc/PHPCI/issues{/number}","pulls_url":"https://api.github.com/repos/alasdairdc/PHPCI/pulls{/number}","milestones_url":"https://api.github.com/repos/alasdairdc/PHPCI/milestones{/number}","notifications_url":"https://api.github.com/repos/alasdairdc/PHPCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alasdairdc/PHPCI/labels{/name}","releases_url":"https://api.github.com/repos/alasdairdc/PHPCI/releases{/id}","created_at":"2015-04-16T23:02:25Z","updated_at":"2015-04-20T01:01:28Z","pushed_at":"2015-04-20T01:01:27Z","git_url":"git://github.com/alasdairdc/PHPCI.git","ssh_url":"git@github.com:alasdairdc/PHPCI.git","clone_url":"https://github.com/alasdairdc/PHPCI.git","svn_url":"https://github.com/alasdairdc/PHPCI","homepage":"https://www.phptesting.org/","size":4398,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Block8:master","ref":"master","sha":"3626eabc2e548548d7e923b51756c331f1eecf77","user":{"login":"Block8","id":2234295,"avatar_url":"https://avatars.githubusercontent.com/u/2234295?v=3","gravatar_id":"","url":"https://api.github.com/users/Block8","html_url":"https://github.com/Block8","followers_url":"https://api.github.com/users/Block8/followers","following_url":"https://api.github.com/users/Block8/following{/other_user}","gists_url":"https://api.github.com/users/Block8/gists{/gist_id}","starred_url":"https://api.github.com/users/Block8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Block8/subscriptions","organizations_url":"https://api.github.com/users/Block8/orgs","repos_url":"https://api.github.com/users/Block8/repos","events_url":"https://api.github.com/users/Block8/events{/privacy}","received_events_url":"https://api.github.com/users/Block8/received_events","type":"Organization","site_admin":false},"repo":{"id":9982892,"name":"PHPCI","full_name":"Block8/PHPCI","owner":{"login":"Block8","id":2234295,"avatar_url":"https://avatars.githubusercontent.com/u/2234295?v=3","gravatar_id":"","url":"https://api.github.com/users/Block8","html_url":"https://github.com/Block8","followers_url":"https://api.github.com/users/Block8/followers","following_url":"https://api.github.com/users/Block8/following{/other_user}","gists_url":"https://api.github.com/users/Block8/gists{/gist_id}","starred_url":"https://api.github.com/users/Block8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Block8/subscriptions","organizations_url":"https://api.github.com/users/Block8/orgs","repos_url":"https://api.github.com/users/Block8/repos","events_url":"https://api.github.com/users/Block8/events{/privacy}","received_events_url":"https://api.github.com/users/Block8/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Block8/PHPCI","description":"PHPCI is a free and open source continuous integration tool specifically designed for PHP.","fork":false,"url":"https://api.github.com/repos/Block8/PHPCI","forks_url":"https://api.github.com/repos/Block8/PHPCI/forks","keys_url":"https://api.github.com/repos/Block8/PHPCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Block8/PHPCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Block8/PHPCI/teams","hooks_url":"https://api.github.com/repos/Block8/PHPCI/hooks","issue_events_url":"https://api.github.com/repos/Block8/PHPCI/issues/events{/number}","events_url":"https://api.github.com/repos/Block8/PHPCI/events","assignees_url":"https://api.github.com/repos/Block8/PHPCI/assignees{/user}","branches_url":"https://api.github.com/repos/Block8/PHPCI/branches{/branch}","tags_url":"https://api.github.com/repos/Block8/PHPCI/tags","blobs_url":"https://api.github.com/repos/Block8/PHPCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Block8/PHPCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Block8/PHPCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/Block8/PHPCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Block8/PHPCI/statuses/{sha}","languages_url":"https://api.github.com/repos/Block8/PHPCI/languages","stargazers_url":"https://api.github.com/repos/Block8/PHPCI/stargazers","contributors_url":"https://api.github.com/repos/Block8/PHPCI/contributors","subscribers_url":"https://api.github.com/repos/Block8/PHPCI/subscribers","subscription_url":"https://api.github.com/repos/Block8/PHPCI/subscription","commits_url":"https://api.github.com/repos/Block8/PHPCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/Block8/PHPCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/Block8/PHPCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/Block8/PHPCI/issues/comments{/number}","contents_url":"https://api.github.com/repos/Block8/PHPCI/contents/{+path}","compare_url":"https://api.github.com/repos/Block8/PHPCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Block8/PHPCI/merges","archive_url":"https://api.github.com/repos/Block8/PHPCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Block8/PHPCI/downloads","issues_url":"https://api.github.com/repos/Block8/PHPCI/issues{/number}","pulls_url":"https://api.github.com/repos/Block8/PHPCI/pulls{/number}","milestones_url":"https://api.github.com/repos/Block8/PHPCI/milestones{/number}","notifications_url":"https://api.github.com/repos/Block8/PHPCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Block8/PHPCI/labels{/name}","releases_url":"https://api.github.com/repos/Block8/PHPCI/releases{/id}","created_at":"2013-05-10T14:17:41Z","updated_at":"2015-04-20T10:41:01Z","pushed_at":"2015-04-20T08:57:18Z","git_url":"git://github.com/Block8/PHPCI.git","ssh_url":"git@github.com:Block8/PHPCI.git","clone_url":"https://github.com/Block8/PHPCI.git","svn_url":"https://github.com/Block8/PHPCI","homepage":"https://www.phptesting.org/","size":12210,"stargazers_count":1493,"watchers_count":1493,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":305,"mirror_url":null,"open_issues_count":170,"forks":305,"open_issues":170,"watchers":1493,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Block8/PHPCI/pulls/918"},"html":{"href":"https://github.com/Block8/PHPCI/pull/918"},"issue":{"href":"https://api.github.com/repos/Block8/PHPCI/issues/918"},"comments":{"href":"https://api.github.com/repos/Block8/PHPCI/issues/918/comments"},"review_comments":{"href":"https://api.github.com/repos/Block8/PHPCI/pulls/918/comments"},"review_comment":{"href":"https://api.github.com/repos/Block8/PHPCI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Block8/PHPCI/pulls/918/commits"},"statuses":{"href":"https://api.github.com/repos/Block8/PHPCI/statuses/0d88bb2de342f5527f6f6679c80adc648b7129e5"}}}}