{"action":"created","comment":{"url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/comments/47363627","id":47363627,"diff_hunk":"@@ -258,6 +258,34 @@ protected function loadFixturesFrom($source = '/')\n     }\n \n     /**\n+     * @param string $source\n+     */\n+    protected function loadFixturesFromSingleFile($source)\n+    {\n+        $source = $this->getFixtureRealPath($source);\n+        $this->assertSourceExists($source);\n+\n+        $loader = new Loader();\n+\n+        $objects = $loader->load($source);\n+        $this->persistObjects($objects);\n+\n+        $this->entityManager->flush();\n+    }\n+\n+    /**\n+     * @param string $source\n+     *\n+     * @return string\n+     */\n+    private function getFixtureRealPath($source)\n+    {\n+        $baseDirectory = $this->getFixturesFolder();\n+\n+        return $source = $baseDirectory.\\DIRECTORY_SEPARATOR.$source;","path":"src/ApiTestCase.php","position":61,"original_position":61,"commit_id":"c9cd4900ec7e763b5475a9b49fce796a52c532b2","original_commit_id":"c9cd4900ec7e763b5475a9b49fce796a52c532b2","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"body":"`return $source =`? :)","created_at":"2015-12-11T15:04:12Z","updated_at":"2015-12-11T15:04:12Z","html_url":"https://github.com/Lakion/ApiTestCase/pull/27#discussion_r47363627","pull_request_url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/comments/47363627"},"html":{"href":"https://github.com/Lakion/ApiTestCase/pull/27#discussion_r47363627"},"pull_request":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27","id":53401948,"html_url":"https://github.com/Lakion/ApiTestCase/pull/27","diff_url":"https://github.com/Lakion/ApiTestCase/pull/27.diff","patch_url":"https://github.com/Lakion/ApiTestCase/pull/27.patch","issue_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues/27","number":27,"state":"open","locked":false,"title":"[RFC] Refactor loading fixtures by using symfony finder","user":{"login":"Arminek","id":6368946,"avatar_url":"https://avatars.githubusercontent.com/u/6368946?v=3","gravatar_id":"","url":"https://api.github.com/users/Arminek","html_url":"https://github.com/Arminek","followers_url":"https://api.github.com/users/Arminek/followers","following_url":"https://api.github.com/users/Arminek/following{/other_user}","gists_url":"https://api.github.com/users/Arminek/gists{/gist_id}","starred_url":"https://api.github.com/users/Arminek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arminek/subscriptions","organizations_url":"https://api.github.com/users/Arminek/orgs","repos_url":"https://api.github.com/users/Arminek/repos","events_url":"https://api.github.com/users/Arminek/events{/privacy}","received_events_url":"https://api.github.com/users/Arminek/received_events","type":"User","site_admin":false},"body":"I think decouple loading methods will be better approach.\r\n","created_at":"2015-12-11T14:58:08Z","updated_at":"2015-12-11T15:04:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38e66074c6d3f800418e4ba9800b3ecff7232413","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27/commits","review_comments_url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27/comments","review_comment_url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues/27/comments","statuses_url":"https://api.github.com/repos/Lakion/ApiTestCase/statuses/c9cd4900ec7e763b5475a9b49fce796a52c532b2","head":{"label":"Lakion:api-test-finder","ref":"api-test-finder","sha":"c9cd4900ec7e763b5475a9b49fce796a52c532b2","user":{"login":"Lakion","id":6876915,"avatar_url":"https://avatars.githubusercontent.com/u/6876915?v=3","gravatar_id":"","url":"https://api.github.com/users/Lakion","html_url":"https://github.com/Lakion","followers_url":"https://api.github.com/users/Lakion/followers","following_url":"https://api.github.com/users/Lakion/following{/other_user}","gists_url":"https://api.github.com/users/Lakion/gists{/gist_id}","starred_url":"https://api.github.com/users/Lakion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lakion/subscriptions","organizations_url":"https://api.github.com/users/Lakion/orgs","repos_url":"https://api.github.com/users/Lakion/repos","events_url":"https://api.github.com/users/Lakion/events{/privacy}","received_events_url":"https://api.github.com/users/Lakion/received_events","type":"Organization","site_admin":false},"repo":{"id":45345838,"name":"ApiTestCase","full_name":"Lakion/ApiTestCase","owner":{"login":"Lakion","id":6876915,"avatar_url":"https://avatars.githubusercontent.com/u/6876915?v=3","gravatar_id":"","url":"https://api.github.com/users/Lakion","html_url":"https://github.com/Lakion","followers_url":"https://api.github.com/users/Lakion/followers","following_url":"https://api.github.com/users/Lakion/following{/other_user}","gists_url":"https://api.github.com/users/Lakion/gists{/gist_id}","starred_url":"https://api.github.com/users/Lakion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lakion/subscriptions","organizations_url":"https://api.github.com/users/Lakion/orgs","repos_url":"https://api.github.com/users/Lakion/repos","events_url":"https://api.github.com/users/Lakion/events{/privacy}","received_events_url":"https://api.github.com/users/Lakion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Lakion/ApiTestCase","description":"Handy PHPUnit test case for testing JSON APIs in your Symfony applications.","fork":false,"url":"https://api.github.com/repos/Lakion/ApiTestCase","forks_url":"https://api.github.com/repos/Lakion/ApiTestCase/forks","keys_url":"https://api.github.com/repos/Lakion/ApiTestCase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lakion/ApiTestCase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lakion/ApiTestCase/teams","hooks_url":"https://api.github.com/repos/Lakion/ApiTestCase/hooks","issue_events_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues/events{/number}","events_url":"https://api.github.com/repos/Lakion/ApiTestCase/events","assignees_url":"https://api.github.com/repos/Lakion/ApiTestCase/assignees{/user}","branches_url":"https://api.github.com/repos/Lakion/ApiTestCase/branches{/branch}","tags_url":"https://api.github.com/repos/Lakion/ApiTestCase/tags","blobs_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lakion/ApiTestCase/statuses/{sha}","languages_url":"https://api.github.com/repos/Lakion/ApiTestCase/languages","stargazers_url":"https://api.github.com/repos/Lakion/ApiTestCase/stargazers","contributors_url":"https://api.github.com/repos/Lakion/ApiTestCase/contributors","subscribers_url":"https://api.github.com/repos/Lakion/ApiTestCase/subscribers","subscription_url":"https://api.github.com/repos/Lakion/ApiTestCase/subscription","commits_url":"https://api.github.com/repos/Lakion/ApiTestCase/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lakion/ApiTestCase/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lakion/ApiTestCase/contents/{+path}","compare_url":"https://api.github.com/repos/Lakion/ApiTestCase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lakion/ApiTestCase/merges","archive_url":"https://api.github.com/repos/Lakion/ApiTestCase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lakion/ApiTestCase/downloads","issues_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues{/number}","pulls_url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls{/number}","milestones_url":"https://api.github.com/repos/Lakion/ApiTestCase/milestones{/number}","notifications_url":"https://api.github.com/repos/Lakion/ApiTestCase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lakion/ApiTestCase/labels{/name}","releases_url":"https://api.github.com/repos/Lakion/ApiTestCase/releases{/id}","created_at":"2015-11-01T15:30:08Z","updated_at":"2015-12-11T09:10:40Z","pushed_at":"2015-12-11T14:58:08Z","git_url":"git://github.com/Lakion/ApiTestCase.git","ssh_url":"git@github.com:Lakion/ApiTestCase.git","clone_url":"https://github.com/Lakion/ApiTestCase.git","svn_url":"https://github.com/Lakion/ApiTestCase","homepage":"","size":81,"stargazers_count":13,"watchers_count":13,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":13,"default_branch":"master"}},"base":{"label":"Lakion:master","ref":"master","sha":"8b8199d2ece79f11d7bcf6eaa4c26d7006979abd","user":{"login":"Lakion","id":6876915,"avatar_url":"https://avatars.githubusercontent.com/u/6876915?v=3","gravatar_id":"","url":"https://api.github.com/users/Lakion","html_url":"https://github.com/Lakion","followers_url":"https://api.github.com/users/Lakion/followers","following_url":"https://api.github.com/users/Lakion/following{/other_user}","gists_url":"https://api.github.com/users/Lakion/gists{/gist_id}","starred_url":"https://api.github.com/users/Lakion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lakion/subscriptions","organizations_url":"https://api.github.com/users/Lakion/orgs","repos_url":"https://api.github.com/users/Lakion/repos","events_url":"https://api.github.com/users/Lakion/events{/privacy}","received_events_url":"https://api.github.com/users/Lakion/received_events","type":"Organization","site_admin":false},"repo":{"id":45345838,"name":"ApiTestCase","full_name":"Lakion/ApiTestCase","owner":{"login":"Lakion","id":6876915,"avatar_url":"https://avatars.githubusercontent.com/u/6876915?v=3","gravatar_id":"","url":"https://api.github.com/users/Lakion","html_url":"https://github.com/Lakion","followers_url":"https://api.github.com/users/Lakion/followers","following_url":"https://api.github.com/users/Lakion/following{/other_user}","gists_url":"https://api.github.com/users/Lakion/gists{/gist_id}","starred_url":"https://api.github.com/users/Lakion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lakion/subscriptions","organizations_url":"https://api.github.com/users/Lakion/orgs","repos_url":"https://api.github.com/users/Lakion/repos","events_url":"https://api.github.com/users/Lakion/events{/privacy}","received_events_url":"https://api.github.com/users/Lakion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Lakion/ApiTestCase","description":"Handy PHPUnit test case for testing JSON APIs in your Symfony applications.","fork":false,"url":"https://api.github.com/repos/Lakion/ApiTestCase","forks_url":"https://api.github.com/repos/Lakion/ApiTestCase/forks","keys_url":"https://api.github.com/repos/Lakion/ApiTestCase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lakion/ApiTestCase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lakion/ApiTestCase/teams","hooks_url":"https://api.github.com/repos/Lakion/ApiTestCase/hooks","issue_events_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues/events{/number}","events_url":"https://api.github.com/repos/Lakion/ApiTestCase/events","assignees_url":"https://api.github.com/repos/Lakion/ApiTestCase/assignees{/user}","branches_url":"https://api.github.com/repos/Lakion/ApiTestCase/branches{/branch}","tags_url":"https://api.github.com/repos/Lakion/ApiTestCase/tags","blobs_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lakion/ApiTestCase/statuses/{sha}","languages_url":"https://api.github.com/repos/Lakion/ApiTestCase/languages","stargazers_url":"https://api.github.com/repos/Lakion/ApiTestCase/stargazers","contributors_url":"https://api.github.com/repos/Lakion/ApiTestCase/contributors","subscribers_url":"https://api.github.com/repos/Lakion/ApiTestCase/subscribers","subscription_url":"https://api.github.com/repos/Lakion/ApiTestCase/subscription","commits_url":"https://api.github.com/repos/Lakion/ApiTestCase/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lakion/ApiTestCase/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lakion/ApiTestCase/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lakion/ApiTestCase/contents/{+path}","compare_url":"https://api.github.com/repos/Lakion/ApiTestCase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lakion/ApiTestCase/merges","archive_url":"https://api.github.com/repos/Lakion/ApiTestCase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lakion/ApiTestCase/downloads","issues_url":"https://api.github.com/repos/Lakion/ApiTestCase/issues{/number}","pulls_url":"https://api.github.com/repos/Lakion/ApiTestCase/pulls{/number}","milestones_url":"https://api.github.com/repos/Lakion/ApiTestCase/milestones{/number}","notifications_url":"https://api.github.com/repos/Lakion/ApiTestCase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lakion/ApiTestCase/labels{/name}","releases_url":"https://api.github.com/repos/Lakion/ApiTestCase/releases{/id}","created_at":"2015-11-01T15:30:08Z","updated_at":"2015-12-11T09:10:40Z","pushed_at":"2015-12-11T14:58:08Z","git_url":"git://github.com/Lakion/ApiTestCase.git","ssh_url":"git@github.com:Lakion/ApiTestCase.git","clone_url":"https://github.com/Lakion/ApiTestCase.git","svn_url":"https://github.com/Lakion/ApiTestCase","homepage":"","size":81,"stargazers_count":13,"watchers_count":13,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27"},"html":{"href":"https://github.com/Lakion/ApiTestCase/pull/27"},"issue":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/issues/27"},"comments":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/Lakion/ApiTestCase/statuses/c9cd4900ec7e763b5475a9b49fce796a52c532b2"}}}}