{"action":"created","comment":{"url":"https://api.github.com/repos/wfmu/ae-utils/pulls/comments/40331124","id":40331124,"diff_hunk":"@@ -0,0 +1,112 @@\n+<?php\n+namespace AEUtils\\tests;\n+\n+class BaseFixtureLoader {\n+\n+  protected $_loaded_files = array();\n+  protected $_fixture_directory;\n+  protected $_fixture_file_ending;\n+\n+  public function __construct(string $fixture_directory, string $file_ending) {\n+    if (!is_dir($fixture_directory)) {\n+      throw new Exception('Please specify a valid fixture directory');\n+    }\n+\n+    $this->_fixture_directory = $fixture_directory;\n+    $this->_fixture_file_ending = $file_ending;\n+  }\n+\n+  public function getOne(string $table, integer $index) {","path":"src/tests/BaseFixtureLoader.php","position":19,"original_position":19,"commit_id":"8c916e9c2bc644cf21ca42fb129ed828330d1ad4","original_commit_id":"1580b32036653458ff710f8423ca0e3a81a0e611","user":{"login":"MattSurabian","id":1134260,"avatar_url":"https://avatars.githubusercontent.com/u/1134260?v=3","gravatar_id":"","url":"https://api.github.com/users/MattSurabian","html_url":"https://github.com/MattSurabian","followers_url":"https://api.github.com/users/MattSurabian/followers","following_url":"https://api.github.com/users/MattSurabian/following{/other_user}","gists_url":"https://api.github.com/users/MattSurabian/gists{/gist_id}","starred_url":"https://api.github.com/users/MattSurabian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattSurabian/subscriptions","organizations_url":"https://api.github.com/users/MattSurabian/orgs","repos_url":"https://api.github.com/users/MattSurabian/repos","events_url":"https://api.github.com/users/MattSurabian/events{/privacy}","received_events_url":"https://api.github.com/users/MattSurabian/received_events","type":"User","site_admin":false},"body":"This should call getAll and pick the item out.","created_at":"2015-09-24T15:17:41Z","updated_at":"2015-09-24T15:17:41Z","html_url":"https://github.com/wfmu/ae-utils/pull/32#discussion_r40331124","pull_request_url":"https://api.github.com/repos/wfmu/ae-utils/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/wfmu/ae-utils/pulls/comments/40331124"},"html":{"href":"https://github.com/wfmu/ae-utils/pull/32#discussion_r40331124"},"pull_request":{"href":"https://api.github.com/repos/wfmu/ae-utils/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/wfmu/ae-utils/pulls/32","id":45903199,"html_url":"https://github.com/wfmu/ae-utils/pull/32","diff_url":"https://github.com/wfmu/ae-utils/pull/32.diff","patch_url":"https://github.com/wfmu/ae-utils/pull/32.patch","issue_url":"https://api.github.com/repos/wfmu/ae-utils/issues/32","number":32,"state":"open","locked":false,"title":"WIP: Add `FixtureLoader.php`","user":{"login":"carldanley","id":1470571,"avatar_url":"https://avatars.githubusercontent.com/u/1470571?v=3","gravatar_id":"","url":"https://api.github.com/users/carldanley","html_url":"https://github.com/carldanley","followers_url":"https://api.github.com/users/carldanley/followers","following_url":"https://api.github.com/users/carldanley/following{/other_user}","gists_url":"https://api.github.com/users/carldanley/gists{/gist_id}","starred_url":"https://api.github.com/users/carldanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carldanley/subscriptions","organizations_url":"https://api.github.com/users/carldanley/orgs","repos_url":"https://api.github.com/users/carldanley/repos","events_url":"https://api.github.com/users/carldanley/events{/privacy}","received_events_url":"https://api.github.com/users/carldanley/received_events","type":"User","site_admin":false},"body":"This PR represents the transfer of the `FixtureLoader` class introduced in https://github.com/wfmu/ae-api/pull/281. This is obviously something that will be reused so we need to move it to the `ae-utils` repo instead.","created_at":"2015-09-24T14:24:45Z","updated_at":"2015-09-24T15:17:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5324a2bdf3e1db5ff8db187e8b59a7c870c987c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wfmu/ae-utils/pulls/32/commits","review_comments_url":"https://api.github.com/repos/wfmu/ae-utils/pulls/32/comments","review_comment_url":"https://api.github.com/repos/wfmu/ae-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wfmu/ae-utils/issues/32/comments","statuses_url":"https://api.github.com/repos/wfmu/ae-utils/statuses/8c916e9c2bc644cf21ca42fb129ed828330d1ad4","head":{"label":"carldanley:add-fixture-loader","ref":"add-fixture-loader","sha":"8c916e9c2bc644cf21ca42fb129ed828330d1ad4","user":{"login":"carldanley","id":1470571,"avatar_url":"https://avatars.githubusercontent.com/u/1470571?v=3","gravatar_id":"","url":"https://api.github.com/users/carldanley","html_url":"https://github.com/carldanley","followers_url":"https://api.github.com/users/carldanley/followers","following_url":"https://api.github.com/users/carldanley/following{/other_user}","gists_url":"https://api.github.com/users/carldanley/gists{/gist_id}","starred_url":"https://api.github.com/users/carldanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carldanley/subscriptions","organizations_url":"https://api.github.com/users/carldanley/orgs","repos_url":"https://api.github.com/users/carldanley/repos","events_url":"https://api.github.com/users/carldanley/events{/privacy}","received_events_url":"https://api.github.com/users/carldanley/received_events","type":"User","site_admin":false},"repo":{"id":43071346,"name":"ae-utils","full_name":"carldanley/ae-utils","owner":{"login":"carldanley","id":1470571,"avatar_url":"https://avatars.githubusercontent.com/u/1470571?v=3","gravatar_id":"","url":"https://api.github.com/users/carldanley","html_url":"https://github.com/carldanley","followers_url":"https://api.github.com/users/carldanley/followers","following_url":"https://api.github.com/users/carldanley/following{/other_user}","gists_url":"https://api.github.com/users/carldanley/gists{/gist_id}","starred_url":"https://api.github.com/users/carldanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carldanley/subscriptions","organizations_url":"https://api.github.com/users/carldanley/orgs","repos_url":"https://api.github.com/users/carldanley/repos","events_url":"https://api.github.com/users/carldanley/events{/privacy}","received_events_url":"https://api.github.com/users/carldanley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carldanley/ae-utils","description":"Utility code for Audience Engine APIs","fork":true,"url":"https://api.github.com/repos/carldanley/ae-utils","forks_url":"https://api.github.com/repos/carldanley/ae-utils/forks","keys_url":"https://api.github.com/repos/carldanley/ae-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carldanley/ae-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carldanley/ae-utils/teams","hooks_url":"https://api.github.com/repos/carldanley/ae-utils/hooks","issue_events_url":"https://api.github.com/repos/carldanley/ae-utils/issues/events{/number}","events_url":"https://api.github.com/repos/carldanley/ae-utils/events","assignees_url":"https://api.github.com/repos/carldanley/ae-utils/assignees{/user}","branches_url":"https://api.github.com/repos/carldanley/ae-utils/branches{/branch}","tags_url":"https://api.github.com/repos/carldanley/ae-utils/tags","blobs_url":"https://api.github.com/repos/carldanley/ae-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carldanley/ae-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carldanley/ae-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/carldanley/ae-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carldanley/ae-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/carldanley/ae-utils/languages","stargazers_url":"https://api.github.com/repos/carldanley/ae-utils/stargazers","contributors_url":"https://api.github.com/repos/carldanley/ae-utils/contributors","subscribers_url":"https://api.github.com/repos/carldanley/ae-utils/subscribers","subscription_url":"https://api.github.com/repos/carldanley/ae-utils/subscription","commits_url":"https://api.github.com/repos/carldanley/ae-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/carldanley/ae-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/carldanley/ae-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/carldanley/ae-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/carldanley/ae-utils/contents/{+path}","compare_url":"https://api.github.com/repos/carldanley/ae-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carldanley/ae-utils/merges","archive_url":"https://api.github.com/repos/carldanley/ae-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carldanley/ae-utils/downloads","issues_url":"https://api.github.com/repos/carldanley/ae-utils/issues{/number}","pulls_url":"https://api.github.com/repos/carldanley/ae-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/carldanley/ae-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/carldanley/ae-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carldanley/ae-utils/labels{/name}","releases_url":"https://api.github.com/repos/carldanley/ae-utils/releases{/id}","created_at":"2015-09-24T14:19:28Z","updated_at":"2015-09-24T14:19:28Z","pushed_at":"2015-09-24T15:15:34Z","git_url":"git://github.com/carldanley/ae-utils.git","ssh_url":"git@github.com:carldanley/ae-utils.git","clone_url":"https://github.com/carldanley/ae-utils.git","svn_url":"https://github.com/carldanley/ae-utils","homepage":"","size":176,"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":"master"}},"base":{"label":"wfmu:master","ref":"master","sha":"02c5b7a261e65f8402a1ae57b5ac6485ec6fc566","user":{"login":"wfmu","id":273456,"avatar_url":"https://avatars.githubusercontent.com/u/273456?v=3","gravatar_id":"","url":"https://api.github.com/users/wfmu","html_url":"https://github.com/wfmu","followers_url":"https://api.github.com/users/wfmu/followers","following_url":"https://api.github.com/users/wfmu/following{/other_user}","gists_url":"https://api.github.com/users/wfmu/gists{/gist_id}","starred_url":"https://api.github.com/users/wfmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfmu/subscriptions","organizations_url":"https://api.github.com/users/wfmu/orgs","repos_url":"https://api.github.com/users/wfmu/repos","events_url":"https://api.github.com/users/wfmu/events{/privacy}","received_events_url":"https://api.github.com/users/wfmu/received_events","type":"Organization","site_admin":false},"repo":{"id":39894383,"name":"ae-utils","full_name":"wfmu/ae-utils","owner":{"login":"wfmu","id":273456,"avatar_url":"https://avatars.githubusercontent.com/u/273456?v=3","gravatar_id":"","url":"https://api.github.com/users/wfmu","html_url":"https://github.com/wfmu","followers_url":"https://api.github.com/users/wfmu/followers","following_url":"https://api.github.com/users/wfmu/following{/other_user}","gists_url":"https://api.github.com/users/wfmu/gists{/gist_id}","starred_url":"https://api.github.com/users/wfmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfmu/subscriptions","organizations_url":"https://api.github.com/users/wfmu/orgs","repos_url":"https://api.github.com/users/wfmu/repos","events_url":"https://api.github.com/users/wfmu/events{/privacy}","received_events_url":"https://api.github.com/users/wfmu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wfmu/ae-utils","description":"Utility code for Audience Engine APIs","fork":false,"url":"https://api.github.com/repos/wfmu/ae-utils","forks_url":"https://api.github.com/repos/wfmu/ae-utils/forks","keys_url":"https://api.github.com/repos/wfmu/ae-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wfmu/ae-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wfmu/ae-utils/teams","hooks_url":"https://api.github.com/repos/wfmu/ae-utils/hooks","issue_events_url":"https://api.github.com/repos/wfmu/ae-utils/issues/events{/number}","events_url":"https://api.github.com/repos/wfmu/ae-utils/events","assignees_url":"https://api.github.com/repos/wfmu/ae-utils/assignees{/user}","branches_url":"https://api.github.com/repos/wfmu/ae-utils/branches{/branch}","tags_url":"https://api.github.com/repos/wfmu/ae-utils/tags","blobs_url":"https://api.github.com/repos/wfmu/ae-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wfmu/ae-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wfmu/ae-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/wfmu/ae-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wfmu/ae-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/wfmu/ae-utils/languages","stargazers_url":"https://api.github.com/repos/wfmu/ae-utils/stargazers","contributors_url":"https://api.github.com/repos/wfmu/ae-utils/contributors","subscribers_url":"https://api.github.com/repos/wfmu/ae-utils/subscribers","subscription_url":"https://api.github.com/repos/wfmu/ae-utils/subscription","commits_url":"https://api.github.com/repos/wfmu/ae-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/wfmu/ae-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/wfmu/ae-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/wfmu/ae-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/wfmu/ae-utils/contents/{+path}","compare_url":"https://api.github.com/repos/wfmu/ae-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wfmu/ae-utils/merges","archive_url":"https://api.github.com/repos/wfmu/ae-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wfmu/ae-utils/downloads","issues_url":"https://api.github.com/repos/wfmu/ae-utils/issues{/number}","pulls_url":"https://api.github.com/repos/wfmu/ae-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/wfmu/ae-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/wfmu/ae-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wfmu/ae-utils/labels{/name}","releases_url":"https://api.github.com/repos/wfmu/ae-utils/releases{/id}","created_at":"2015-07-29T13:19:28Z","updated_at":"2015-09-24T14:15:34Z","pushed_at":"2015-09-24T15:15:35Z","git_url":"git://github.com/wfmu/ae-utils.git","ssh_url":"git@github.com:wfmu/ae-utils.git","clone_url":"https://github.com/wfmu/ae-utils.git","svn_url":"https://github.com/wfmu/ae-utils","homepage":"","size":532,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wfmu/ae-utils/pulls/32"},"html":{"href":"https://github.com/wfmu/ae-utils/pull/32"},"issue":{"href":"https://api.github.com/repos/wfmu/ae-utils/issues/32"},"comments":{"href":"https://api.github.com/repos/wfmu/ae-utils/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/wfmu/ae-utils/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/wfmu/ae-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wfmu/ae-utils/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/wfmu/ae-utils/statuses/8c916e9c2bc644cf21ca42fb129ed828330d1ad4"}}}}