{"action":"created","comment":{"url":"https://api.github.com/repos/brick/std/pulls/comments/172068519","pull_request_review_id":101023414,"id":172068519,"diff_hunk":"@@ -42,6 +42,130 @@ public function tearDown()\n         $this->exec('rm -rf ' . $this->tmp);\n     }\n \n+    /**\n+     * @expectedException        Brick\\Std\\Io\\IoException\n+     * @expectedExceptionMessage Error getting real path of invalid_path, check that the path exists\n+     */\n+    public function testGetRealPathWithInvalidPath()\n+    {\n+        FileSystem::getRealPath('invalid_path');\n+    }\n+\n+    public function testGetRealPath()\n+    {\n+        $filePath = __DIR__ . '/../../composer.json';\n+        $expectedRealPath = realpath($filePath);\n+\n+        $this->assertSame($expectedRealPath, FileSystem::getRealPath($filePath));\n+    }\n+\n+    public function testWriteWithAppendFlag()\n+    {\n+        $this->assertSame(4, FileSystem::write('./temp_file', 'data', true));\n+    }\n+\n+    public function testWriteWithLockFlag()\n+    {\n+        $this->assertSame(0, FileSystem::write('./temp_lock_file', '', false, true));\n+    }\n+\n+    public function testReadWithMaxLength()\n+    {\n+        FileSystem::write('./temp_lock_file', 'data');\n+\n+        $this->assertSame('dat', FileSystem::read('./temp_lock_file', 0, 3));\n+    }\n+\n+    /**\n+     * @expectedException        Brick\\Std\\Io\\IoException\n+     * @expectedExceptionMessage Error copying ./temp_lock_file to /temp_lock_file\n+     */\n+    public function testCopyShouldReturnIOException()","path":"tests/Io/FileSystemTest.php","position":42,"original_position":42,"commit_id":"1eb9911f615e3b20341c297993e3169db0433f0e","original_commit_id":"1eb9911f615e3b20341c297993e3169db0433f0e","user":{"login":"BenMorel","id":1952838,"avatar_url":"https://avatars3.githubusercontent.com/u/1952838?v=4","gravatar_id":"","url":"https://api.github.com/users/BenMorel","html_url":"https://github.com/BenMorel","followers_url":"https://api.github.com/users/BenMorel/followers","following_url":"https://api.github.com/users/BenMorel/following{/other_user}","gists_url":"https://api.github.com/users/BenMorel/gists{/gist_id}","starred_url":"https://api.github.com/users/BenMorel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenMorel/subscriptions","organizations_url":"https://api.github.com/users/BenMorel/orgs","repos_url":"https://api.github.com/users/BenMorel/repos","events_url":"https://api.github.com/users/BenMorel/events{/privacy}","received_events_url":"https://api.github.com/users/BenMorel/received_events","type":"User","site_admin":false},"body":"Can you please rename those methods to `*ThrowIOException` instead of `Return`?","created_at":"2018-03-04T22:54:29Z","updated_at":"2018-03-04T22:54:29Z","html_url":"https://github.com/brick/std/pull/1#discussion_r172068519","pull_request_url":"https://api.github.com/repos/brick/std/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/brick/std/pulls/comments/172068519"},"html":{"href":"https://github.com/brick/std/pull/1#discussion_r172068519"},"pull_request":{"href":"https://api.github.com/repos/brick/std/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/brick/std/pulls/1","id":172728726,"html_url":"https://github.com/brick/std/pull/1","diff_url":"https://github.com/brick/std/pull/1.diff","patch_url":"https://github.com/brick/std/pull/1.patch","issue_url":"https://api.github.com/repos/brick/std/issues/1","number":1,"state":"open","locked":false,"title":"test enhancement","user":{"login":"peter279k","id":9021747,"avatar_url":"https://avatars2.githubusercontent.com/u/9021747?v=4","gravatar_id":"","url":"https://api.github.com/users/peter279k","html_url":"https://github.com/peter279k","followers_url":"https://api.github.com/users/peter279k/followers","following_url":"https://api.github.com/users/peter279k/following{/other_user}","gists_url":"https://api.github.com/users/peter279k/gists{/gist_id}","starred_url":"https://api.github.com/users/peter279k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter279k/subscriptions","organizations_url":"https://api.github.com/users/peter279k/orgs","repos_url":"https://api.github.com/users/peter279k/repos","events_url":"https://api.github.com/users/peter279k/events{/privacy}","received_events_url":"https://api.github.com/users/peter279k/received_events","type":"User","site_admin":false},"body":"# Changed log\r\n- add more tests\r\n- add the ```ext-curl``` in ```composer.json``` to check whether the curl extension is installed.\r\n","created_at":"2018-03-04T16:48:52Z","updated_at":"2018-03-04T22:54:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b14da750485f013380e7be4b9db0e38882b828ea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/brick/std/pulls/1/commits","review_comments_url":"https://api.github.com/repos/brick/std/pulls/1/comments","review_comment_url":"https://api.github.com/repos/brick/std/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brick/std/issues/1/comments","statuses_url":"https://api.github.com/repos/brick/std/statuses/1eb9911f615e3b20341c297993e3169db0433f0e","head":{"label":"peter279k:test_enhancement","ref":"test_enhancement","sha":"1eb9911f615e3b20341c297993e3169db0433f0e","user":{"login":"peter279k","id":9021747,"avatar_url":"https://avatars2.githubusercontent.com/u/9021747?v=4","gravatar_id":"","url":"https://api.github.com/users/peter279k","html_url":"https://github.com/peter279k","followers_url":"https://api.github.com/users/peter279k/followers","following_url":"https://api.github.com/users/peter279k/following{/other_user}","gists_url":"https://api.github.com/users/peter279k/gists{/gist_id}","starred_url":"https://api.github.com/users/peter279k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter279k/subscriptions","organizations_url":"https://api.github.com/users/peter279k/orgs","repos_url":"https://api.github.com/users/peter279k/repos","events_url":"https://api.github.com/users/peter279k/events{/privacy}","received_events_url":"https://api.github.com/users/peter279k/received_events","type":"User","site_admin":false},"repo":{"id":123791037,"name":"std","full_name":"peter279k/std","owner":{"login":"peter279k","id":9021747,"avatar_url":"https://avatars2.githubusercontent.com/u/9021747?v=4","gravatar_id":"","url":"https://api.github.com/users/peter279k","html_url":"https://github.com/peter279k","followers_url":"https://api.github.com/users/peter279k/followers","following_url":"https://api.github.com/users/peter279k/following{/other_user}","gists_url":"https://api.github.com/users/peter279k/gists{/gist_id}","starred_url":"https://api.github.com/users/peter279k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter279k/subscriptions","organizations_url":"https://api.github.com/users/peter279k/orgs","repos_url":"https://api.github.com/users/peter279k/repos","events_url":"https://api.github.com/users/peter279k/events{/privacy}","received_events_url":"https://api.github.com/users/peter279k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peter279k/std","description":"An attempt at a standard library for PHP","fork":true,"url":"https://api.github.com/repos/peter279k/std","forks_url":"https://api.github.com/repos/peter279k/std/forks","keys_url":"https://api.github.com/repos/peter279k/std/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peter279k/std/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peter279k/std/teams","hooks_url":"https://api.github.com/repos/peter279k/std/hooks","issue_events_url":"https://api.github.com/repos/peter279k/std/issues/events{/number}","events_url":"https://api.github.com/repos/peter279k/std/events","assignees_url":"https://api.github.com/repos/peter279k/std/assignees{/user}","branches_url":"https://api.github.com/repos/peter279k/std/branches{/branch}","tags_url":"https://api.github.com/repos/peter279k/std/tags","blobs_url":"https://api.github.com/repos/peter279k/std/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peter279k/std/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peter279k/std/git/refs{/sha}","trees_url":"https://api.github.com/repos/peter279k/std/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peter279k/std/statuses/{sha}","languages_url":"https://api.github.com/repos/peter279k/std/languages","stargazers_url":"https://api.github.com/repos/peter279k/std/stargazers","contributors_url":"https://api.github.com/repos/peter279k/std/contributors","subscribers_url":"https://api.github.com/repos/peter279k/std/subscribers","subscription_url":"https://api.github.com/repos/peter279k/std/subscription","commits_url":"https://api.github.com/repos/peter279k/std/commits{/sha}","git_commits_url":"https://api.github.com/repos/peter279k/std/git/commits{/sha}","comments_url":"https://api.github.com/repos/peter279k/std/comments{/number}","issue_comment_url":"https://api.github.com/repos/peter279k/std/issues/comments{/number}","contents_url":"https://api.github.com/repos/peter279k/std/contents/{+path}","compare_url":"https://api.github.com/repos/peter279k/std/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peter279k/std/merges","archive_url":"https://api.github.com/repos/peter279k/std/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peter279k/std/downloads","issues_url":"https://api.github.com/repos/peter279k/std/issues{/number}","pulls_url":"https://api.github.com/repos/peter279k/std/pulls{/number}","milestones_url":"https://api.github.com/repos/peter279k/std/milestones{/number}","notifications_url":"https://api.github.com/repos/peter279k/std/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peter279k/std/labels{/name}","releases_url":"https://api.github.com/repos/peter279k/std/releases{/id}","deployments_url":"https://api.github.com/repos/peter279k/std/deployments","created_at":"2018-03-04T13:27:02Z","updated_at":"2018-03-04T13:27:05Z","pushed_at":"2018-03-04T16:50:09Z","git_url":"git://github.com/peter279k/std.git","ssh_url":"git@github.com:peter279k/std.git","clone_url":"https://github.com/peter279k/std.git","svn_url":"https://github.com/peter279k/std","homepage":null,"size":195,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brick:master","ref":"master","sha":"d70162429d752755617d91b11fd2bb8c8c3860e8","user":{"login":"brick","id":3463355,"avatar_url":"https://avatars3.githubusercontent.com/u/3463355?v=4","gravatar_id":"","url":"https://api.github.com/users/brick","html_url":"https://github.com/brick","followers_url":"https://api.github.com/users/brick/followers","following_url":"https://api.github.com/users/brick/following{/other_user}","gists_url":"https://api.github.com/users/brick/gists{/gist_id}","starred_url":"https://api.github.com/users/brick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brick/subscriptions","organizations_url":"https://api.github.com/users/brick/orgs","repos_url":"https://api.github.com/users/brick/repos","events_url":"https://api.github.com/users/brick/events{/privacy}","received_events_url":"https://api.github.com/users/brick/received_events","type":"Organization","site_admin":false},"repo":{"id":109395500,"name":"std","full_name":"brick/std","owner":{"login":"brick","id":3463355,"avatar_url":"https://avatars3.githubusercontent.com/u/3463355?v=4","gravatar_id":"","url":"https://api.github.com/users/brick","html_url":"https://github.com/brick","followers_url":"https://api.github.com/users/brick/followers","following_url":"https://api.github.com/users/brick/following{/other_user}","gists_url":"https://api.github.com/users/brick/gists{/gist_id}","starred_url":"https://api.github.com/users/brick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brick/subscriptions","organizations_url":"https://api.github.com/users/brick/orgs","repos_url":"https://api.github.com/users/brick/repos","events_url":"https://api.github.com/users/brick/events{/privacy}","received_events_url":"https://api.github.com/users/brick/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brick/std","description":"An attempt at a standard library for PHP","fork":false,"url":"https://api.github.com/repos/brick/std","forks_url":"https://api.github.com/repos/brick/std/forks","keys_url":"https://api.github.com/repos/brick/std/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brick/std/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brick/std/teams","hooks_url":"https://api.github.com/repos/brick/std/hooks","issue_events_url":"https://api.github.com/repos/brick/std/issues/events{/number}","events_url":"https://api.github.com/repos/brick/std/events","assignees_url":"https://api.github.com/repos/brick/std/assignees{/user}","branches_url":"https://api.github.com/repos/brick/std/branches{/branch}","tags_url":"https://api.github.com/repos/brick/std/tags","blobs_url":"https://api.github.com/repos/brick/std/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brick/std/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brick/std/git/refs{/sha}","trees_url":"https://api.github.com/repos/brick/std/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brick/std/statuses/{sha}","languages_url":"https://api.github.com/repos/brick/std/languages","stargazers_url":"https://api.github.com/repos/brick/std/stargazers","contributors_url":"https://api.github.com/repos/brick/std/contributors","subscribers_url":"https://api.github.com/repos/brick/std/subscribers","subscription_url":"https://api.github.com/repos/brick/std/subscription","commits_url":"https://api.github.com/repos/brick/std/commits{/sha}","git_commits_url":"https://api.github.com/repos/brick/std/git/commits{/sha}","comments_url":"https://api.github.com/repos/brick/std/comments{/number}","issue_comment_url":"https://api.github.com/repos/brick/std/issues/comments{/number}","contents_url":"https://api.github.com/repos/brick/std/contents/{+path}","compare_url":"https://api.github.com/repos/brick/std/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brick/std/merges","archive_url":"https://api.github.com/repos/brick/std/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brick/std/downloads","issues_url":"https://api.github.com/repos/brick/std/issues{/number}","pulls_url":"https://api.github.com/repos/brick/std/pulls{/number}","milestones_url":"https://api.github.com/repos/brick/std/milestones{/number}","notifications_url":"https://api.github.com/repos/brick/std/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brick/std/labels{/name}","releases_url":"https://api.github.com/repos/brick/std/releases{/id}","deployments_url":"https://api.github.com/repos/brick/std/deployments","created_at":"2017-11-03T12:55:52Z","updated_at":"2018-03-03T18:23:29Z","pushed_at":"2018-03-04T22:23:44Z","git_url":"git://github.com/brick/std.git","ssh_url":"git@github.com:brick/std.git","clone_url":"https://github.com/brick/std.git","svn_url":"https://github.com/brick/std","homepage":null,"size":191,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brick/std/pulls/1"},"html":{"href":"https://github.com/brick/std/pull/1"},"issue":{"href":"https://api.github.com/repos/brick/std/issues/1"},"comments":{"href":"https://api.github.com/repos/brick/std/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/brick/std/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/brick/std/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brick/std/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/brick/std/statuses/1eb9911f615e3b20341c297993e3169db0433f0e"}},"author_association":"NONE"}}
{"actor":{"display_login":"BenMorel"}}