{"action":"created","comment":{"url":"https://api.github.com/repos/phpspec/phpspec/pulls/comments/23138571","id":23138571,"diff_hunk":"@@ -0,0 +1,72 @@\n+<?php\n+\n+use Behat\\Behat\\Tester\\Exception\\PendingException;\n+use Behat\\Behat\\Context\\Context;\n+use Behat\\Behat\\Context\\SnippetAcceptingContext;\n+use Behat\\Gherkin\\Node\\PyStringNode;\n+use Behat\\Gherkin\\Node\\TableNode;\n+use PhpSpec\\Exception\\Example\\SkippingException;\n+use Symfony\\Component\\Process\\Process;\n+\n+/**\n+ * Defines application features from the specific context.\n+ */\n+class IsolatedProcessContext implements Context, SnippetAcceptingContext\n+{\n+    private $lastOutput;\n+\n+    /**\n+     * @Given I have started describing the :class class\n+     */\n+    public function iHaveStartedDescribingTheClass($class)\n+    {\n+        $process = new Process($this->buildPhpSpecCmd() . ' describe '. escapeshellarg($class));\n+        $process->run();\n+\n+        expect($process->getExitCode())->toBe(0);\n+    }\n+\n+    /**\n+     * @When I run phpspec and answer :answer when asked if I want to generate the code\n+     */\n+    public function iRunPhpspecAndAnswerWhenAskedIfIWantToGenerateTheCode($answer)\n+    {\n+        if (!`which expect`) {\n+            throw new SkippingException('Cannot test interactive scripts on this platform');","path":"features/bootstrap/IsolatedProcessContext.php","position":35,"original_position":35,"commit_id":"34a2808483ddc2d16bbc5476863422f5b3cc36ce","original_commit_id":"34a2808483ddc2d16bbc5476863422f5b3cc36ce","user":{"login":"ciaranmcnulty","id":237866,"avatar_url":"https://avatars.githubusercontent.com/u/237866?v=3","gravatar_id":"","url":"https://api.github.com/users/ciaranmcnulty","html_url":"https://github.com/ciaranmcnulty","followers_url":"https://api.github.com/users/ciaranmcnulty/followers","following_url":"https://api.github.com/users/ciaranmcnulty/following{/other_user}","gists_url":"https://api.github.com/users/ciaranmcnulty/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaranmcnulty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaranmcnulty/subscriptions","organizations_url":"https://api.github.com/users/ciaranmcnulty/orgs","repos_url":"https://api.github.com/users/ciaranmcnulty/repos","events_url":"https://api.github.com/users/ciaranmcnulty/events{/privacy}","received_events_url":"https://api.github.com/users/ciaranmcnulty/received_events","type":"User","site_admin":false},"body":"PhpStorm hides it from me ;-)\r\n\r\nI want to skip when `expect` is not available, but it seems to not be possible I think?","created_at":"2015-01-19T00:06:40Z","updated_at":"2015-01-19T00:06:40Z","html_url":"https://github.com/phpspec/phpspec/pull/615#discussion_r23138571","pull_request_url":"https://api.github.com/repos/phpspec/phpspec/pulls/615","_links":{"self":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/comments/23138571"},"html":{"href":"https://github.com/phpspec/phpspec/pull/615#discussion_r23138571"},"pull_request":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/615"}}},"pull_request":{"url":"https://api.github.com/repos/phpspec/phpspec/pulls/615","id":27578929,"html_url":"https://github.com/phpspec/phpspec/pull/615","diff_url":"https://github.com/phpspec/phpspec/pull/615.diff","patch_url":"https://github.com/phpspec/phpspec/pull/615.patch","issue_url":"https://api.github.com/repos/phpspec/phpspec/issues/615","number":615,"state":"closed","locked":false,"title":"Adding smoke test running command at CLI","user":{"login":"ciaranmcnulty","id":237866,"avatar_url":"https://avatars.githubusercontent.com/u/237866?v=3","gravatar_id":"","url":"https://api.github.com/users/ciaranmcnulty","html_url":"https://github.com/ciaranmcnulty","followers_url":"https://api.github.com/users/ciaranmcnulty/followers","following_url":"https://api.github.com/users/ciaranmcnulty/following{/other_user}","gists_url":"https://api.github.com/users/ciaranmcnulty/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaranmcnulty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaranmcnulty/subscriptions","organizations_url":"https://api.github.com/users/ciaranmcnulty/orgs","repos_url":"https://api.github.com/users/ciaranmcnulty/repos","events_url":"https://api.github.com/users/ciaranmcnulty/events{/privacy}","received_events_url":"https://api.github.com/users/ciaranmcnulty/received_events","type":"User","site_admin":false},"body":"Covers two critical scenarios by running them through `sh` and interacting as a `tty`.","created_at":"2015-01-18T23:19:11Z","updated_at":"2015-01-19T00:06:40Z","closed_at":"2015-01-18T23:25:46Z","merged_at":null,"merge_commit_sha":"b9f5951ca147fae6c283a5df79e49e2d07687ad9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phpspec/phpspec/pulls/615/commits","review_comments_url":"https://api.github.com/repos/phpspec/phpspec/pulls/615/comments","review_comment_url":"https://api.github.com/repos/phpspec/phpspec/pulls/comments/{number}","comments_url":"https://api.github.com/repos/phpspec/phpspec/issues/615/comments","statuses_url":"https://api.github.com/repos/phpspec/phpspec/statuses/34a2808483ddc2d16bbc5476863422f5b3cc36ce","head":{"label":"ciaranmcnulty:feature/isolated-behat-context","ref":"feature/isolated-behat-context","sha":"34a2808483ddc2d16bbc5476863422f5b3cc36ce","user":{"login":"ciaranmcnulty","id":237866,"avatar_url":"https://avatars.githubusercontent.com/u/237866?v=3","gravatar_id":"","url":"https://api.github.com/users/ciaranmcnulty","html_url":"https://github.com/ciaranmcnulty","followers_url":"https://api.github.com/users/ciaranmcnulty/followers","following_url":"https://api.github.com/users/ciaranmcnulty/following{/other_user}","gists_url":"https://api.github.com/users/ciaranmcnulty/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaranmcnulty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaranmcnulty/subscriptions","organizations_url":"https://api.github.com/users/ciaranmcnulty/orgs","repos_url":"https://api.github.com/users/ciaranmcnulty/repos","events_url":"https://api.github.com/users/ciaranmcnulty/events{/privacy}","received_events_url":"https://api.github.com/users/ciaranmcnulty/received_events","type":"User","site_admin":false},"repo":{"id":12401524,"name":"phpspec","full_name":"ciaranmcnulty/phpspec","owner":{"login":"ciaranmcnulty","id":237866,"avatar_url":"https://avatars.githubusercontent.com/u/237866?v=3","gravatar_id":"","url":"https://api.github.com/users/ciaranmcnulty","html_url":"https://github.com/ciaranmcnulty","followers_url":"https://api.github.com/users/ciaranmcnulty/followers","following_url":"https://api.github.com/users/ciaranmcnulty/following{/other_user}","gists_url":"https://api.github.com/users/ciaranmcnulty/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaranmcnulty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaranmcnulty/subscriptions","organizations_url":"https://api.github.com/users/ciaranmcnulty/orgs","repos_url":"https://api.github.com/users/ciaranmcnulty/repos","events_url":"https://api.github.com/users/ciaranmcnulty/events{/privacy}","received_events_url":"https://api.github.com/users/ciaranmcnulty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ciaranmcnulty/phpspec","description":"SpecBDD Framework for PHP","fork":true,"url":"https://api.github.com/repos/ciaranmcnulty/phpspec","forks_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/forks","keys_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/teams","hooks_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/hooks","issue_events_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/issues/events{/number}","events_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/events","assignees_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/assignees{/user}","branches_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/branches{/branch}","tags_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/tags","blobs_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/git/refs{/sha}","trees_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/statuses/{sha}","languages_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/languages","stargazers_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/stargazers","contributors_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/contributors","subscribers_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/subscribers","subscription_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/subscription","commits_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/commits{/sha}","git_commits_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/git/commits{/sha}","comments_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/comments{/number}","issue_comment_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/issues/comments/{number}","contents_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/contents/{+path}","compare_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/merges","archive_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/downloads","issues_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/issues{/number}","pulls_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/pulls{/number}","milestones_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/milestones{/number}","notifications_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/labels{/name}","releases_url":"https://api.github.com/repos/ciaranmcnulty/phpspec/releases{/id}","created_at":"2013-08-27T08:58:32Z","updated_at":"2015-01-10T11:23:13Z","pushed_at":"2015-01-19T00:05:35Z","git_url":"git://github.com/ciaranmcnulty/phpspec.git","ssh_url":"git@github.com:ciaranmcnulty/phpspec.git","clone_url":"https://github.com/ciaranmcnulty/phpspec.git","svn_url":"https://github.com/ciaranmcnulty/phpspec","homepage":"http://www.phpspec.net","size":4279,"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":"phpspec:master","ref":"master","sha":"f65d8ef944ce8a34b0e70fbb4ec0c48d6fec4ccb","user":{"login":"phpspec","id":416702,"avatar_url":"https://avatars.githubusercontent.com/u/416702?v=3","gravatar_id":"","url":"https://api.github.com/users/phpspec","html_url":"https://github.com/phpspec","followers_url":"https://api.github.com/users/phpspec/followers","following_url":"https://api.github.com/users/phpspec/following{/other_user}","gists_url":"https://api.github.com/users/phpspec/gists{/gist_id}","starred_url":"https://api.github.com/users/phpspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpspec/subscriptions","organizations_url":"https://api.github.com/users/phpspec/orgs","repos_url":"https://api.github.com/users/phpspec/repos","events_url":"https://api.github.com/users/phpspec/events{/privacy}","received_events_url":"https://api.github.com/users/phpspec/received_events","type":"Organization","site_admin":false},"repo":{"id":1582219,"name":"phpspec","full_name":"phpspec/phpspec","owner":{"login":"phpspec","id":416702,"avatar_url":"https://avatars.githubusercontent.com/u/416702?v=3","gravatar_id":"","url":"https://api.github.com/users/phpspec","html_url":"https://github.com/phpspec","followers_url":"https://api.github.com/users/phpspec/followers","following_url":"https://api.github.com/users/phpspec/following{/other_user}","gists_url":"https://api.github.com/users/phpspec/gists{/gist_id}","starred_url":"https://api.github.com/users/phpspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpspec/subscriptions","organizations_url":"https://api.github.com/users/phpspec/orgs","repos_url":"https://api.github.com/users/phpspec/repos","events_url":"https://api.github.com/users/phpspec/events{/privacy}","received_events_url":"https://api.github.com/users/phpspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpspec/phpspec","description":"SpecBDD Framework for PHP","fork":false,"url":"https://api.github.com/repos/phpspec/phpspec","forks_url":"https://api.github.com/repos/phpspec/phpspec/forks","keys_url":"https://api.github.com/repos/phpspec/phpspec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpspec/phpspec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpspec/phpspec/teams","hooks_url":"https://api.github.com/repos/phpspec/phpspec/hooks","issue_events_url":"https://api.github.com/repos/phpspec/phpspec/issues/events{/number}","events_url":"https://api.github.com/repos/phpspec/phpspec/events","assignees_url":"https://api.github.com/repos/phpspec/phpspec/assignees{/user}","branches_url":"https://api.github.com/repos/phpspec/phpspec/branches{/branch}","tags_url":"https://api.github.com/repos/phpspec/phpspec/tags","blobs_url":"https://api.github.com/repos/phpspec/phpspec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpspec/phpspec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpspec/phpspec/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpspec/phpspec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpspec/phpspec/statuses/{sha}","languages_url":"https://api.github.com/repos/phpspec/phpspec/languages","stargazers_url":"https://api.github.com/repos/phpspec/phpspec/stargazers","contributors_url":"https://api.github.com/repos/phpspec/phpspec/contributors","subscribers_url":"https://api.github.com/repos/phpspec/phpspec/subscribers","subscription_url":"https://api.github.com/repos/phpspec/phpspec/subscription","commits_url":"https://api.github.com/repos/phpspec/phpspec/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpspec/phpspec/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpspec/phpspec/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpspec/phpspec/issues/comments/{number}","contents_url":"https://api.github.com/repos/phpspec/phpspec/contents/{+path}","compare_url":"https://api.github.com/repos/phpspec/phpspec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpspec/phpspec/merges","archive_url":"https://api.github.com/repos/phpspec/phpspec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpspec/phpspec/downloads","issues_url":"https://api.github.com/repos/phpspec/phpspec/issues{/number}","pulls_url":"https://api.github.com/repos/phpspec/phpspec/pulls{/number}","milestones_url":"https://api.github.com/repos/phpspec/phpspec/milestones{/number}","notifications_url":"https://api.github.com/repos/phpspec/phpspec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpspec/phpspec/labels{/name}","releases_url":"https://api.github.com/repos/phpspec/phpspec/releases{/id}","created_at":"2011-04-07T12:48:08Z","updated_at":"2015-01-18T21:53:05Z","pushed_at":"2015-01-18T18:36:58Z","git_url":"git://github.com/phpspec/phpspec.git","ssh_url":"git@github.com:phpspec/phpspec.git","clone_url":"https://github.com/phpspec/phpspec.git","svn_url":"https://github.com/phpspec/phpspec","homepage":"http://www.phpspec.net","size":6229,"stargazers_count":677,"watchers_count":677,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":132,"mirror_url":null,"open_issues_count":51,"forks":132,"open_issues":51,"watchers":677,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/615"},"html":{"href":"https://github.com/phpspec/phpspec/pull/615"},"issue":{"href":"https://api.github.com/repos/phpspec/phpspec/issues/615"},"comments":{"href":"https://api.github.com/repos/phpspec/phpspec/issues/615/comments"},"review_comments":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/615/comments"},"review_comment":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/615/commits"},"statuses":{"href":"https://api.github.com/repos/phpspec/phpspec/statuses/34a2808483ddc2d16bbc5476863422f5b3cc36ce"}}}}