{"action":"created","comment":{"url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/comments/26642849","id":26642849,"diff_hunk":"@@ -0,0 +1,43 @@\n+<?php\n+\n+namespace Quickstart\\Bundle\\AppBundle\\Features\\Context\\Page;\n+\n+use SensioLabs\\Behat\\PageObjectExtension\\PageObject\\Page;\n+use Behat\\Mink;\n+\n+class Homepage extends Page\n+{\n+\n+    /**\n+     * @param string $email\n+     * @param string $password\n+     * @return Page\n+     */\n+    public function loginCredentials($email, $password)\n+    {\n+        $this->clickLink('Login');\n+        $this->fillField('username', $email);\n+        $this->fillField('password', $password);\n+        $this->pressButton('_submit');\n+\n+    }\n+\n+    /**\n+     * @param string $count\n+     * @param string $area\n+     * @return Page\n+     * @throws \\Exception\n+     */\n+    public function countTheElements($count, $area)\n+    {\n+        $str = $this->getDriver()->getContent();\n+        echo $str;\n+        $count2 = substr_count($str, $area);\n+        if ($count != $count2) {\n+            throw new \\Exception('Count is incorrect');\n+        };\n+    }\n+\n+\n+\n+}","path":"test/features/bootstrap/Quickstart/Bundle/AppBundle/Features/Context/Page/Homepage.php","position":43,"original_position":43,"commit_id":"1ea359ca9a5162db6771e674e64f6099ddaba4a8","original_commit_id":"1ea359ca9a5162db6771e674e64f6099ddaba4a8","user":{"login":"eddiejaoude","id":624760,"avatar_url":"https://avatars.githubusercontent.com/u/624760?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiejaoude","html_url":"https://github.com/eddiejaoude","followers_url":"https://api.github.com/users/eddiejaoude/followers","following_url":"https://api.github.com/users/eddiejaoude/following{/other_user}","gists_url":"https://api.github.com/users/eddiejaoude/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiejaoude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiejaoude/subscriptions","organizations_url":"https://api.github.com/users/eddiejaoude/orgs","repos_url":"https://api.github.com/users/eddiejaoude/repos","events_url":"https://api.github.com/users/eddiejaoude/events{/privacy}","received_events_url":"https://api.github.com/users/eddiejaoude/received_events","type":"User","site_admin":false},"body":"Needs 1 blank line at the end","created_at":"2015-03-18T07:36:54Z","updated_at":"2015-03-18T07:36:54Z","html_url":"https://github.com/eddiejaoude/SymfonyQuickStart/pull/9#discussion_r26642849","pull_request_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/comments/26642849"},"html":{"href":"https://github.com/eddiejaoude/SymfonyQuickStart/pull/9#discussion_r26642849"},"pull_request":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9","id":31400685,"html_url":"https://github.com/eddiejaoude/SymfonyQuickStart/pull/9","diff_url":"https://github.com/eddiejaoude/SymfonyQuickStart/pull/9.diff","patch_url":"https://github.com/eddiejaoude/SymfonyQuickStart/pull/9.patch","issue_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/issues/9","number":9,"state":"open","locked":false,"title":"Added page objects extension and changed existing code and strcuture.","user":{"login":"jaffamonkey","id":42831,"avatar_url":"https://avatars.githubusercontent.com/u/42831?v=3","gravatar_id":"","url":"https://api.github.com/users/jaffamonkey","html_url":"https://github.com/jaffamonkey","followers_url":"https://api.github.com/users/jaffamonkey/followers","following_url":"https://api.github.com/users/jaffamonkey/following{/other_user}","gists_url":"https://api.github.com/users/jaffamonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/jaffamonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaffamonkey/subscriptions","organizations_url":"https://api.github.com/users/jaffamonkey/orgs","repos_url":"https://api.github.com/users/jaffamonkey/repos","events_url":"https://api.github.com/users/jaffamonkey/events{/privacy}","received_events_url":"https://api.github.com/users/jaffamonkey/received_events","type":"User","site_admin":false},"body":"I had to use \"dev-master\" for pageobjects extesnsion - I couldn't get round that in the end, but feel free to try :)","created_at":"2015-03-18T04:57:58Z","updated_at":"2015-03-18T07:36:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e886868db3ff482e5a598f170f5b4dd73a8dac4","assignee":{"login":"eddiejaoude","id":624760,"avatar_url":"https://avatars.githubusercontent.com/u/624760?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiejaoude","html_url":"https://github.com/eddiejaoude","followers_url":"https://api.github.com/users/eddiejaoude/followers","following_url":"https://api.github.com/users/eddiejaoude/following{/other_user}","gists_url":"https://api.github.com/users/eddiejaoude/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiejaoude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiejaoude/subscriptions","organizations_url":"https://api.github.com/users/eddiejaoude/orgs","repos_url":"https://api.github.com/users/eddiejaoude/repos","events_url":"https://api.github.com/users/eddiejaoude/events{/privacy}","received_events_url":"https://api.github.com/users/eddiejaoude/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9/commits","review_comments_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9/comments","review_comment_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/issues/9/comments","statuses_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/statuses/1ea359ca9a5162db6771e674e64f6099ddaba4a8","head":{"label":"jaffamonkey:master","ref":"master","sha":"1ea359ca9a5162db6771e674e64f6099ddaba4a8","user":{"login":"jaffamonkey","id":42831,"avatar_url":"https://avatars.githubusercontent.com/u/42831?v=3","gravatar_id":"","url":"https://api.github.com/users/jaffamonkey","html_url":"https://github.com/jaffamonkey","followers_url":"https://api.github.com/users/jaffamonkey/followers","following_url":"https://api.github.com/users/jaffamonkey/following{/other_user}","gists_url":"https://api.github.com/users/jaffamonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/jaffamonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaffamonkey/subscriptions","organizations_url":"https://api.github.com/users/jaffamonkey/orgs","repos_url":"https://api.github.com/users/jaffamonkey/repos","events_url":"https://api.github.com/users/jaffamonkey/events{/privacy}","received_events_url":"https://api.github.com/users/jaffamonkey/received_events","type":"User","site_admin":false},"repo":{"id":32281695,"name":"SymfonyQuickStart","full_name":"jaffamonkey/SymfonyQuickStart","owner":{"login":"jaffamonkey","id":42831,"avatar_url":"https://avatars.githubusercontent.com/u/42831?v=3","gravatar_id":"","url":"https://api.github.com/users/jaffamonkey","html_url":"https://github.com/jaffamonkey","followers_url":"https://api.github.com/users/jaffamonkey/followers","following_url":"https://api.github.com/users/jaffamonkey/following{/other_user}","gists_url":"https://api.github.com/users/jaffamonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/jaffamonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaffamonkey/subscriptions","organizations_url":"https://api.github.com/users/jaffamonkey/orgs","repos_url":"https://api.github.com/users/jaffamonkey/repos","events_url":"https://api.github.com/users/jaffamonkey/events{/privacy}","received_events_url":"https://api.github.com/users/jaffamonkey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaffamonkey/SymfonyQuickStart","description":"Symfony 2 QuickStart with Best Practice tools including Behat 3, PHPSpec 2, PHPUnit 4 & Twitter Bootstrap 3, TravisCI & Heroku","fork":true,"url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart","forks_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/forks","keys_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/teams","hooks_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/hooks","issue_events_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/issues/events{/number}","events_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/events","assignees_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/assignees{/user}","branches_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/branches{/branch}","tags_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/tags","blobs_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/statuses/{sha}","languages_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/languages","stargazers_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/stargazers","contributors_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/contributors","subscribers_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/subscribers","subscription_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/subscription","commits_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/contents/{+path}","compare_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/merges","archive_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/downloads","issues_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/issues{/number}","pulls_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/pulls{/number}","milestones_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/milestones{/number}","notifications_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/labels{/name}","releases_url":"https://api.github.com/repos/jaffamonkey/SymfonyQuickStart/releases{/id}","created_at":"2015-03-15T20:14:15Z","updated_at":"2015-03-18T04:52:15Z","pushed_at":"2015-03-18T04:52:14Z","git_url":"git://github.com/jaffamonkey/SymfonyQuickStart.git","ssh_url":"git@github.com:jaffamonkey/SymfonyQuickStart.git","clone_url":"https://github.com/jaffamonkey/SymfonyQuickStart.git","svn_url":"https://github.com/jaffamonkey/SymfonyQuickStart","homepage":"","size":1938,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"eddiejaoude:master","ref":"master","sha":"7c718faf4d036644ced9e5f2432e32e91021e93b","user":{"login":"eddiejaoude","id":624760,"avatar_url":"https://avatars.githubusercontent.com/u/624760?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiejaoude","html_url":"https://github.com/eddiejaoude","followers_url":"https://api.github.com/users/eddiejaoude/followers","following_url":"https://api.github.com/users/eddiejaoude/following{/other_user}","gists_url":"https://api.github.com/users/eddiejaoude/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiejaoude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiejaoude/subscriptions","organizations_url":"https://api.github.com/users/eddiejaoude/orgs","repos_url":"https://api.github.com/users/eddiejaoude/repos","events_url":"https://api.github.com/users/eddiejaoude/events{/privacy}","received_events_url":"https://api.github.com/users/eddiejaoude/received_events","type":"User","site_admin":false},"repo":{"id":29406277,"name":"SymfonyQuickStart","full_name":"eddiejaoude/SymfonyQuickStart","owner":{"login":"eddiejaoude","id":624760,"avatar_url":"https://avatars.githubusercontent.com/u/624760?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiejaoude","html_url":"https://github.com/eddiejaoude","followers_url":"https://api.github.com/users/eddiejaoude/followers","following_url":"https://api.github.com/users/eddiejaoude/following{/other_user}","gists_url":"https://api.github.com/users/eddiejaoude/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiejaoude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiejaoude/subscriptions","organizations_url":"https://api.github.com/users/eddiejaoude/orgs","repos_url":"https://api.github.com/users/eddiejaoude/repos","events_url":"https://api.github.com/users/eddiejaoude/events{/privacy}","received_events_url":"https://api.github.com/users/eddiejaoude/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eddiejaoude/SymfonyQuickStart","description":"Symfony 2 QuickStart with Best Practice tools including Behat 3, PHPSpec 2, PHPUnit 4 & Twitter Bootstrap 3, TravisCI & Heroku","fork":false,"url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart","forks_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/forks","keys_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/teams","hooks_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/hooks","issue_events_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/issues/events{/number}","events_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/events","assignees_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/assignees{/user}","branches_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/branches{/branch}","tags_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/tags","blobs_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/git/refs{/sha}","trees_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/statuses/{sha}","languages_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/languages","stargazers_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/stargazers","contributors_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/contributors","subscribers_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/subscribers","subscription_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/subscription","commits_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/commits{/sha}","git_commits_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/git/commits{/sha}","comments_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/comments{/number}","issue_comment_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/issues/comments{/number}","contents_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/contents/{+path}","compare_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/merges","archive_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/downloads","issues_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/issues{/number}","pulls_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls{/number}","milestones_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/milestones{/number}","notifications_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/labels{/name}","releases_url":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/releases{/id}","created_at":"2015-01-17T21:28:10Z","updated_at":"2015-03-10T18:01:13Z","pushed_at":"2015-02-19T07:37:38Z","git_url":"git://github.com/eddiejaoude/SymfonyQuickStart.git","ssh_url":"git@github.com:eddiejaoude/SymfonyQuickStart.git","clone_url":"https://github.com/eddiejaoude/SymfonyQuickStart.git","svn_url":"https://github.com/eddiejaoude/SymfonyQuickStart","homepage":"","size":2139,"stargazers_count":17,"watchers_count":17,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9"},"html":{"href":"https://github.com/eddiejaoude/SymfonyQuickStart/pull/9"},"issue":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/issues/9"},"comments":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/eddiejaoude/SymfonyQuickStart/statuses/1ea359ca9a5162db6771e674e64f6099ddaba4a8"}}}}