{"action":"created","comment":{"url":"https://api.github.com/repos/sonata-project/exporter/pulls/comments/63848606","id":63848606,"diff_hunk":"@@ -0,0 +1,130 @@\n+<?php\n+\n+/*\n+ * This file is part of the Sonata Project package.\n+ *\n+ * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace Exporter\\Test\\Source;\n+\n+use Exporter\\Writer\\KnpSnappyWriter;\n+\n+/**\n+ * Tests the KnpSnapyWriter.\n+ *\n+ * @author Robin Chalas <robin.chalas@gmail.com>\n+ */\n+final class KnpSnappyWriterTest extends \\PHPUnit_Framework_TestCase\n+{\n+    /**\n+     * @var string\n+     */\n+    private $filename;\n+\n+    /**\n+     * @var string\n+     */\n+    private $wkhtmltopdfBinary;\n+\n+    public function setUp()\n+    {\n+        $this->filename = 'foobar.pdf';\n+        // $this->wkhtmltopdfBinary = __DIR__.'/../../../../vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64';\n+        $this->wkhtmltopdfBinary = '/usr/local/bin/wkhtmltopdf';","path":"test/Exporter/Test/Writer/KnpSnappyWriterTest.php","position":null,"original_position":37,"commit_id":"15c9205e0f3cdec19fed754e93317a6a7bd4211e","original_commit_id":"4943e627409fd876514d9148bb01ad23b4b19c78","user":{"login":"chalasr","id":7502063,"avatar_url":"https://avatars.githubusercontent.com/u/7502063?v=3","gravatar_id":"","url":"https://api.github.com/users/chalasr","html_url":"https://github.com/chalasr","followers_url":"https://api.github.com/users/chalasr/followers","following_url":"https://api.github.com/users/chalasr/following{/other_user}","gists_url":"https://api.github.com/users/chalasr/gists{/gist_id}","starred_url":"https://api.github.com/users/chalasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalasr/subscriptions","organizations_url":"https://api.github.com/users/chalasr/orgs","repos_url":"https://api.github.com/users/chalasr/repos","events_url":"https://api.github.com/users/chalasr/events{/privacy}","received_events_url":"https://api.github.com/users/chalasr/received_events","type":"User","site_admin":false},"body":"> Could not this be configurable?\r\n\r\nRegarding the test only or the writer `wkhtmltopdfBinary` argument itself? \r\nFor the test, I can set the binary path as an environment variable or something like to avoid the hard-coded path. If you have a better suggestion...","created_at":"2016-05-19T09:35:22Z","updated_at":"2016-05-19T09:35:22Z","html_url":"https://github.com/sonata-project/exporter/pull/76#discussion_r63848606","pull_request_url":"https://api.github.com/repos/sonata-project/exporter/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/sonata-project/exporter/pulls/comments/63848606"},"html":{"href":"https://github.com/sonata-project/exporter/pull/76#discussion_r63848606"},"pull_request":{"href":"https://api.github.com/repos/sonata-project/exporter/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/sonata-project/exporter/pulls/76","id":70325203,"html_url":"https://github.com/sonata-project/exporter/pull/76","diff_url":"https://github.com/sonata-project/exporter/pull/76.diff","patch_url":"https://github.com/sonata-project/exporter/pull/76.patch","issue_url":"https://api.github.com/repos/sonata-project/exporter/issues/76","number":76,"state":"open","locked":false,"title":"add KnpSnappyWriter","user":{"login":"chalasr","id":7502063,"avatar_url":"https://avatars.githubusercontent.com/u/7502063?v=3","gravatar_id":"","url":"https://api.github.com/users/chalasr","html_url":"https://github.com/chalasr","followers_url":"https://api.github.com/users/chalasr/followers","following_url":"https://api.github.com/users/chalasr/following{/other_user}","gists_url":"https://api.github.com/users/chalasr/gists{/gist_id}","starred_url":"https://api.github.com/users/chalasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalasr/subscriptions","organizations_url":"https://api.github.com/users/chalasr/orgs","repos_url":"https://api.github.com/users/chalasr/repos","events_url":"https://api.github.com/users/chalasr/events{/privacy}","received_events_url":"https://api.github.com/users/chalasr/received_events","type":"User","site_admin":false},"body":"Closes #42 \r\n\r\n### Changelog\r\n\r\n- Add `KnpSnappyWriter` that introduces PDF export format.\r\n\r\n### Subject\r\n\r\nProvides PDF export feature.\r\n\r\n### To do\r\n\r\n- [x] KnpSnappyWriter creation\r\n- [x] Update the tests\r\n- [x] Update the documentation\r\n- [x] Add an upgrade note","created_at":"2016-05-17T09:28:56Z","updated_at":"2016-05-19T09:35:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36bca0dc3cb8d4b63ed4b33c100b7fa8c786f904","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/exporter/pulls/76/commits","review_comments_url":"https://api.github.com/repos/sonata-project/exporter/pulls/76/comments","review_comment_url":"https://api.github.com/repos/sonata-project/exporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/exporter/issues/76/comments","statuses_url":"https://api.github.com/repos/sonata-project/exporter/statuses/15c9205e0f3cdec19fed754e93317a6a7bd4211e","head":{"label":"chalasr:chalasr-master","ref":"chalasr-master","sha":"15c9205e0f3cdec19fed754e93317a6a7bd4211e","user":{"login":"chalasr","id":7502063,"avatar_url":"https://avatars.githubusercontent.com/u/7502063?v=3","gravatar_id":"","url":"https://api.github.com/users/chalasr","html_url":"https://github.com/chalasr","followers_url":"https://api.github.com/users/chalasr/followers","following_url":"https://api.github.com/users/chalasr/following{/other_user}","gists_url":"https://api.github.com/users/chalasr/gists{/gist_id}","starred_url":"https://api.github.com/users/chalasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalasr/subscriptions","organizations_url":"https://api.github.com/users/chalasr/orgs","repos_url":"https://api.github.com/users/chalasr/repos","events_url":"https://api.github.com/users/chalasr/events{/privacy}","received_events_url":"https://api.github.com/users/chalasr/received_events","type":"User","site_admin":false},"repo":{"id":58972587,"name":"exporter","full_name":"chalasr/exporter","owner":{"login":"chalasr","id":7502063,"avatar_url":"https://avatars.githubusercontent.com/u/7502063?v=3","gravatar_id":"","url":"https://api.github.com/users/chalasr","html_url":"https://github.com/chalasr","followers_url":"https://api.github.com/users/chalasr/followers","following_url":"https://api.github.com/users/chalasr/following{/other_user}","gists_url":"https://api.github.com/users/chalasr/gists{/gist_id}","starred_url":"https://api.github.com/users/chalasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalasr/subscriptions","organizations_url":"https://api.github.com/users/chalasr/orgs","repos_url":"https://api.github.com/users/chalasr/repos","events_url":"https://api.github.com/users/chalasr/events{/privacy}","received_events_url":"https://api.github.com/users/chalasr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chalasr/exporter","description":"Exporter","fork":true,"url":"https://api.github.com/repos/chalasr/exporter","forks_url":"https://api.github.com/repos/chalasr/exporter/forks","keys_url":"https://api.github.com/repos/chalasr/exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chalasr/exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chalasr/exporter/teams","hooks_url":"https://api.github.com/repos/chalasr/exporter/hooks","issue_events_url":"https://api.github.com/repos/chalasr/exporter/issues/events{/number}","events_url":"https://api.github.com/repos/chalasr/exporter/events","assignees_url":"https://api.github.com/repos/chalasr/exporter/assignees{/user}","branches_url":"https://api.github.com/repos/chalasr/exporter/branches{/branch}","tags_url":"https://api.github.com/repos/chalasr/exporter/tags","blobs_url":"https://api.github.com/repos/chalasr/exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chalasr/exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chalasr/exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/chalasr/exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chalasr/exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/chalasr/exporter/languages","stargazers_url":"https://api.github.com/repos/chalasr/exporter/stargazers","contributors_url":"https://api.github.com/repos/chalasr/exporter/contributors","subscribers_url":"https://api.github.com/repos/chalasr/exporter/subscribers","subscription_url":"https://api.github.com/repos/chalasr/exporter/subscription","commits_url":"https://api.github.com/repos/chalasr/exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/chalasr/exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/chalasr/exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/chalasr/exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/chalasr/exporter/contents/{+path}","compare_url":"https://api.github.com/repos/chalasr/exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chalasr/exporter/merges","archive_url":"https://api.github.com/repos/chalasr/exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chalasr/exporter/downloads","issues_url":"https://api.github.com/repos/chalasr/exporter/issues{/number}","pulls_url":"https://api.github.com/repos/chalasr/exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/chalasr/exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/chalasr/exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chalasr/exporter/labels{/name}","releases_url":"https://api.github.com/repos/chalasr/exporter/releases{/id}","deployments_url":"https://api.github.com/repos/chalasr/exporter/deployments","created_at":"2016-05-16T22:34:36Z","updated_at":"2016-05-16T22:34:37Z","pushed_at":"2016-05-19T09:34:29Z","git_url":"git://github.com/chalasr/exporter.git","ssh_url":"git@github.com:chalasr/exporter.git","clone_url":"https://github.com/chalasr/exporter.git","svn_url":"https://github.com/chalasr/exporter","homepage":"","size":188,"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":"sonata-project:1.x","ref":"1.x","sha":"00e15e1c7fea1ff774cc7d4c7aa51855f87eb457","user":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"repo":{"id":3548430,"name":"exporter","full_name":"sonata-project/exporter","owner":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonata-project/exporter","description":"Exporter","fork":false,"url":"https://api.github.com/repos/sonata-project/exporter","forks_url":"https://api.github.com/repos/sonata-project/exporter/forks","keys_url":"https://api.github.com/repos/sonata-project/exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/exporter/teams","hooks_url":"https://api.github.com/repos/sonata-project/exporter/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/exporter/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/exporter/events","assignees_url":"https://api.github.com/repos/sonata-project/exporter/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/exporter/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/exporter/tags","blobs_url":"https://api.github.com/repos/sonata-project/exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/exporter/languages","stargazers_url":"https://api.github.com/repos/sonata-project/exporter/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/exporter/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/exporter/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/exporter/subscription","commits_url":"https://api.github.com/repos/sonata-project/exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/exporter/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/exporter/merges","archive_url":"https://api.github.com/repos/sonata-project/exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/exporter/downloads","issues_url":"https://api.github.com/repos/sonata-project/exporter/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/exporter/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/exporter/releases{/id}","deployments_url":"https://api.github.com/repos/sonata-project/exporter/deployments","created_at":"2012-02-25T23:26:26Z","updated_at":"2016-05-18T17:26:50Z","pushed_at":"2016-05-19T09:34:31Z","git_url":"git://github.com/sonata-project/exporter.git","ssh_url":"git@github.com:sonata-project/exporter.git","clone_url":"https://github.com/sonata-project/exporter.git","svn_url":"https://github.com/sonata-project/exporter","homepage":"","size":259,"stargazers_count":84,"watchers_count":84,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":4,"forks":39,"open_issues":4,"watchers":84,"default_branch":"1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/exporter/pulls/76"},"html":{"href":"https://github.com/sonata-project/exporter/pull/76"},"issue":{"href":"https://api.github.com/repos/sonata-project/exporter/issues/76"},"comments":{"href":"https://api.github.com/repos/sonata-project/exporter/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/exporter/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/exporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/exporter/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/exporter/statuses/15c9205e0f3cdec19fed754e93317a6a7bd4211e"}}}}