{"action":"created","comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/comments/26685907","id":26685907,"diff_hunk":"@@ -0,0 +1,314 @@\n+<?php\n+\n+class Form_validation_test extends CI_TestCase {\n+    \n+    public function set_up()\n+    {          \n+        $_SERVER['REQUEST_METHOD'] = 'POST';\n+        \n+        // Create a mock loader since load->helper() looks in the wrong directories for unit tests,\n+        // We'll use CI_TestCase->helper() instead\n+        $ldr = $this->getMock('CI_Loader', array('helper'));\n+        // At current, CI_Form_Validation only calls load->helper(\"form\")\n+        // Assert this so that if that changes this fails fast\n+        $ldr->expects($this->once())\n+                ->method('helper')\n+                ->with($this->equalTo('form'));\n+        \n+        // Same applies for lang\n+        $lang = $this->getMock('CI_Lang', array('load'));\n+        \n+        // Setup CI_Input\n+        // Set config for Input class\n+        $this->ci_set_config('allow_get_array',\tTRUE);","path":"tests/codeigniter/libraries/Form_validation_test.php","position":null,"original_position":23,"commit_id":"63c288cdd7dd66c653da1092ac07a035b01ef560","original_commit_id":"ce4237a6c48fc2538fcb149730c4f62a02dce849","user":{"login":"narfbg","id":1058011,"avatar_url":"https://avatars.githubusercontent.com/u/1058011?v=3","gravatar_id":"","url":"https://api.github.com/users/narfbg","html_url":"https://github.com/narfbg","followers_url":"https://api.github.com/users/narfbg/followers","following_url":"https://api.github.com/users/narfbg/following{/other_user}","gists_url":"https://api.github.com/users/narfbg/gists{/gist_id}","starred_url":"https://api.github.com/users/narfbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narfbg/subscriptions","organizations_url":"https://api.github.com/users/narfbg/orgs","repos_url":"https://api.github.com/users/narfbg/repos","events_url":"https://api.github.com/users/narfbg/events{/privacy}","received_events_url":"https://api.github.com/users/narfbg/received_events","type":"User","site_admin":false},"body":"Yeah, the comment is always under the line that it was intended for ...","created_at":"2015-03-18T17:25:35Z","updated_at":"2015-03-18T17:25:35Z","html_url":"https://github.com/bcit-ci/CodeIgniter/pull/3678#discussion_r26685907","pull_request_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678","_links":{"self":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/comments/26685907"},"html":{"href":"https://github.com/bcit-ci/CodeIgniter/pull/3678#discussion_r26685907"},"pull_request":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678"}}},"pull_request":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678","id":31364554,"html_url":"https://github.com/bcit-ci/CodeIgniter/pull/3678","diff_url":"https://github.com/bcit-ci/CodeIgniter/pull/3678.diff","patch_url":"https://github.com/bcit-ci/CodeIgniter/pull/3678.patch","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3678","number":3678,"state":"open","locked":false,"title":"Added CI_Form_validation unit tests","user":{"login":"djwoods","id":5481264,"avatar_url":"https://avatars.githubusercontent.com/u/5481264?v=3","gravatar_id":"","url":"https://api.github.com/users/djwoods","html_url":"https://github.com/djwoods","followers_url":"https://api.github.com/users/djwoods/followers","following_url":"https://api.github.com/users/djwoods/following{/other_user}","gists_url":"https://api.github.com/users/djwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/djwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djwoods/subscriptions","organizations_url":"https://api.github.com/users/djwoods/orgs","repos_url":"https://api.github.com/users/djwoods/repos","events_url":"https://api.github.com/users/djwoods/events{/privacy}","received_events_url":"https://api.github.com/users/djwoods/received_events","type":"User","site_admin":false},"body":"Added setup and tests for all rules specified in the documentation.\r\nSeveral test cases currently fail. I'll create bug issues & fixes once this pull request is accepted.\r\n\r\nSigned off:\r\ndjwoods <d.woods92@gmail.com>","created_at":"2015-03-17T18:35:55Z","updated_at":"2015-03-18T17:25:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0b658d7ced4d72a513140c322d0b054de94a77c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678/commits","review_comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678/comments","review_comment_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3678/comments","statuses_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/statuses/63c288cdd7dd66c653da1092ac07a035b01ef560","head":{"label":"djwoods:unit-test/form-validation","ref":"unit-test/form-validation","sha":"63c288cdd7dd66c653da1092ac07a035b01ef560","user":{"login":"djwoods","id":5481264,"avatar_url":"https://avatars.githubusercontent.com/u/5481264?v=3","gravatar_id":"","url":"https://api.github.com/users/djwoods","html_url":"https://github.com/djwoods","followers_url":"https://api.github.com/users/djwoods/followers","following_url":"https://api.github.com/users/djwoods/following{/other_user}","gists_url":"https://api.github.com/users/djwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/djwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djwoods/subscriptions","organizations_url":"https://api.github.com/users/djwoods/orgs","repos_url":"https://api.github.com/users/djwoods/repos","events_url":"https://api.github.com/users/djwoods/events{/privacy}","received_events_url":"https://api.github.com/users/djwoods/received_events","type":"User","site_admin":false},"repo":{"id":30947600,"name":"CodeIgniter","full_name":"djwoods/CodeIgniter","owner":{"login":"djwoods","id":5481264,"avatar_url":"https://avatars.githubusercontent.com/u/5481264?v=3","gravatar_id":"","url":"https://api.github.com/users/djwoods","html_url":"https://github.com/djwoods","followers_url":"https://api.github.com/users/djwoods/followers","following_url":"https://api.github.com/users/djwoods/following{/other_user}","gists_url":"https://api.github.com/users/djwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/djwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djwoods/subscriptions","organizations_url":"https://api.github.com/users/djwoods/orgs","repos_url":"https://api.github.com/users/djwoods/repos","events_url":"https://api.github.com/users/djwoods/events{/privacy}","received_events_url":"https://api.github.com/users/djwoods/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djwoods/CodeIgniter","description":"Open Source PHP Framework (originally from EllisLab)","fork":true,"url":"https://api.github.com/repos/djwoods/CodeIgniter","forks_url":"https://api.github.com/repos/djwoods/CodeIgniter/forks","keys_url":"https://api.github.com/repos/djwoods/CodeIgniter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djwoods/CodeIgniter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djwoods/CodeIgniter/teams","hooks_url":"https://api.github.com/repos/djwoods/CodeIgniter/hooks","issue_events_url":"https://api.github.com/repos/djwoods/CodeIgniter/issues/events{/number}","events_url":"https://api.github.com/repos/djwoods/CodeIgniter/events","assignees_url":"https://api.github.com/repos/djwoods/CodeIgniter/assignees{/user}","branches_url":"https://api.github.com/repos/djwoods/CodeIgniter/branches{/branch}","tags_url":"https://api.github.com/repos/djwoods/CodeIgniter/tags","blobs_url":"https://api.github.com/repos/djwoods/CodeIgniter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djwoods/CodeIgniter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djwoods/CodeIgniter/git/refs{/sha}","trees_url":"https://api.github.com/repos/djwoods/CodeIgniter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djwoods/CodeIgniter/statuses/{sha}","languages_url":"https://api.github.com/repos/djwoods/CodeIgniter/languages","stargazers_url":"https://api.github.com/repos/djwoods/CodeIgniter/stargazers","contributors_url":"https://api.github.com/repos/djwoods/CodeIgniter/contributors","subscribers_url":"https://api.github.com/repos/djwoods/CodeIgniter/subscribers","subscription_url":"https://api.github.com/repos/djwoods/CodeIgniter/subscription","commits_url":"https://api.github.com/repos/djwoods/CodeIgniter/commits{/sha}","git_commits_url":"https://api.github.com/repos/djwoods/CodeIgniter/git/commits{/sha}","comments_url":"https://api.github.com/repos/djwoods/CodeIgniter/comments{/number}","issue_comment_url":"https://api.github.com/repos/djwoods/CodeIgniter/issues/comments{/number}","contents_url":"https://api.github.com/repos/djwoods/CodeIgniter/contents/{+path}","compare_url":"https://api.github.com/repos/djwoods/CodeIgniter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djwoods/CodeIgniter/merges","archive_url":"https://api.github.com/repos/djwoods/CodeIgniter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djwoods/CodeIgniter/downloads","issues_url":"https://api.github.com/repos/djwoods/CodeIgniter/issues{/number}","pulls_url":"https://api.github.com/repos/djwoods/CodeIgniter/pulls{/number}","milestones_url":"https://api.github.com/repos/djwoods/CodeIgniter/milestones{/number}","notifications_url":"https://api.github.com/repos/djwoods/CodeIgniter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djwoods/CodeIgniter/labels{/name}","releases_url":"https://api.github.com/repos/djwoods/CodeIgniter/releases{/id}","created_at":"2015-02-18T01:43:47Z","updated_at":"2015-03-16T18:44:15Z","pushed_at":"2015-03-18T17:13:36Z","git_url":"git://github.com/djwoods/CodeIgniter.git","ssh_url":"git@github.com:djwoods/CodeIgniter.git","clone_url":"https://github.com/djwoods/CodeIgniter.git","svn_url":"https://github.com/djwoods/CodeIgniter","homepage":"http://codeigniter.com/","size":39238,"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":"develop"}},"base":{"label":"bcit-ci:develop","ref":"develop","sha":"35514731f05c749526939de4812f5288ff3cc007","user":{"login":"bcit-ci","id":8863432,"avatar_url":"https://avatars.githubusercontent.com/u/8863432?v=3","gravatar_id":"","url":"https://api.github.com/users/bcit-ci","html_url":"https://github.com/bcit-ci","followers_url":"https://api.github.com/users/bcit-ci/followers","following_url":"https://api.github.com/users/bcit-ci/following{/other_user}","gists_url":"https://api.github.com/users/bcit-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/bcit-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcit-ci/subscriptions","organizations_url":"https://api.github.com/users/bcit-ci/orgs","repos_url":"https://api.github.com/users/bcit-ci/repos","events_url":"https://api.github.com/users/bcit-ci/events{/privacy}","received_events_url":"https://api.github.com/users/bcit-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":2234102,"name":"CodeIgniter","full_name":"bcit-ci/CodeIgniter","owner":{"login":"bcit-ci","id":8863432,"avatar_url":"https://avatars.githubusercontent.com/u/8863432?v=3","gravatar_id":"","url":"https://api.github.com/users/bcit-ci","html_url":"https://github.com/bcit-ci","followers_url":"https://api.github.com/users/bcit-ci/followers","following_url":"https://api.github.com/users/bcit-ci/following{/other_user}","gists_url":"https://api.github.com/users/bcit-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/bcit-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcit-ci/subscriptions","organizations_url":"https://api.github.com/users/bcit-ci/orgs","repos_url":"https://api.github.com/users/bcit-ci/repos","events_url":"https://api.github.com/users/bcit-ci/events{/privacy}","received_events_url":"https://api.github.com/users/bcit-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bcit-ci/CodeIgniter","description":"Open Source PHP Framework (originally from EllisLab)","fork":false,"url":"https://api.github.com/repos/bcit-ci/CodeIgniter","forks_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/forks","keys_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/teams","hooks_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/hooks","issue_events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/events{/number}","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/events","assignees_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/assignees{/user}","branches_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/branches{/branch}","tags_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/tags","blobs_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/statuses/{sha}","languages_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/languages","stargazers_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/stargazers","contributors_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/contributors","subscribers_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/subscribers","subscription_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/subscription","commits_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/contents/{+path}","compare_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/merges","archive_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/downloads","issues_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues{/number}","pulls_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls{/number}","milestones_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/milestones{/number}","notifications_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/labels{/name}","releases_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/releases{/id}","created_at":"2011-08-19T13:34:00Z","updated_at":"2015-03-18T15:03:28Z","pushed_at":"2015-03-18T15:03:26Z","git_url":"git://github.com/bcit-ci/CodeIgniter.git","ssh_url":"git@github.com:bcit-ci/CodeIgniter.git","clone_url":"https://github.com/bcit-ci/CodeIgniter.git","svn_url":"https://github.com/bcit-ci/CodeIgniter","homepage":"http://codeigniter.com/","size":70924,"stargazers_count":9489,"watchers_count":9489,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4866,"mirror_url":null,"open_issues_count":47,"forks":4866,"open_issues":47,"watchers":9489,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678"},"html":{"href":"https://github.com/bcit-ci/CodeIgniter/pull/3678"},"issue":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3678"},"comments":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3678/comments"},"review_comments":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678/comments"},"review_comment":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3678/commits"},"statuses":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/statuses/63c288cdd7dd66c653da1092ac07a035b01ef560"}}}}