{"action":"created","comment":{"url":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/comments/58081502","id":58081502,"diff_hunk":"@@ -102,6 +108,22 @@ public function iRegisterXpathNamespaces(TableNode $namespaces)\n     }\n \n     /**\n+     * @Given /^(?:|I )expect SOAP exception(?:| with code \"(\\d+)\")(?:|( and| or)? with message \"([^\"]+?)\")$/\n+     */\n+    public function expectException($code = null, $condition = null, $message = null)\n+    {\n+        // Exit with an error because we're expected an exception and got nothing.\n+        if (null === $this->fault) {\n+            throw new \\RuntimeException('Expected \\SoapFault exception was not thrown!');\n+        }\n+\n+        new SoapFaultProcessor($this->fault, $code, $message, $condition);\n+\n+        // If processor was not thrown an exception then we shouldn't too.","path":"src/Context/SoapContext.php","position":39,"original_position":39,"commit_id":"3608df2e08b5f0c7a8343579dc9c988cbdfc1f99","original_commit_id":"3608df2e08b5f0c7a8343579dc9c988cbdfc1f99","user":{"login":"asgorobets","id":869079,"avatar_url":"https://avatars.githubusercontent.com/u/869079?v=3","gravatar_id":"","url":"https://api.github.com/users/asgorobets","html_url":"https://github.com/asgorobets","followers_url":"https://api.github.com/users/asgorobets/followers","following_url":"https://api.github.com/users/asgorobets/following{/other_user}","gists_url":"https://api.github.com/users/asgorobets/gists{/gist_id}","starred_url":"https://api.github.com/users/asgorobets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asgorobets/subscriptions","organizations_url":"https://api.github.com/users/asgorobets/orgs","repos_url":"https://api.github.com/users/asgorobets/repos","events_url":"https://api.github.com/users/asgorobets/events{/privacy}","received_events_url":"https://api.github.com/users/asgorobets/received_events","type":"User","site_admin":false},"body":"WIll it sound better if we reword it to `If processor didn't throw an exception, then we shouldn't too`?","created_at":"2016-03-31T16:10:10Z","updated_at":"2016-03-31T16:10:10Z","html_url":"https://github.com/asgorobets/SoapExtension/pull/11#discussion_r58081502","pull_request_url":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/comments/58081502"},"html":{"href":"https://github.com/asgorobets/SoapExtension/pull/11#discussion_r58081502"},"pull_request":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11","id":64761404,"html_url":"https://github.com/asgorobets/SoapExtension/pull/11","diff_url":"https://github.com/asgorobets/SoapExtension/pull/11.diff","patch_url":"https://github.com/asgorobets/SoapExtension/pull/11.patch","issue_url":"https://api.github.com/repos/asgorobets/SoapExtension/issues/11","number":11,"state":"open","locked":false,"title":"Improve step to catch SOAP exceptions and add functional tests for it","user":{"login":"BR0kEN-","id":2760616,"avatar_url":"https://avatars.githubusercontent.com/u/2760616?v=3","gravatar_id":"","url":"https://api.github.com/users/BR0kEN-","html_url":"https://github.com/BR0kEN-","followers_url":"https://api.github.com/users/BR0kEN-/followers","following_url":"https://api.github.com/users/BR0kEN-/following{/other_user}","gists_url":"https://api.github.com/users/BR0kEN-/gists{/gist_id}","starred_url":"https://api.github.com/users/BR0kEN-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BR0kEN-/subscriptions","organizations_url":"https://api.github.com/users/BR0kEN-/orgs","repos_url":"https://api.github.com/users/BR0kEN-/repos","events_url":"https://api.github.com/users/BR0kEN-/events{/privacy}","received_events_url":"https://api.github.com/users/BR0kEN-/received_events","type":"User","site_admin":false},"body":"#7 ","created_at":"2016-03-31T09:42:09Z","updated_at":"2016-03-31T16:10:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af804da5fa2ba7778a370d22d98564a4b7873752","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11/commits","review_comments_url":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11/comments","review_comment_url":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asgorobets/SoapExtension/issues/11/comments","statuses_url":"https://api.github.com/repos/asgorobets/SoapExtension/statuses/3608df2e08b5f0c7a8343579dc9c988cbdfc1f99","head":{"label":"BR0kEN-:master","ref":"master","sha":"3608df2e08b5f0c7a8343579dc9c988cbdfc1f99","user":{"login":"BR0kEN-","id":2760616,"avatar_url":"https://avatars.githubusercontent.com/u/2760616?v=3","gravatar_id":"","url":"https://api.github.com/users/BR0kEN-","html_url":"https://github.com/BR0kEN-","followers_url":"https://api.github.com/users/BR0kEN-/followers","following_url":"https://api.github.com/users/BR0kEN-/following{/other_user}","gists_url":"https://api.github.com/users/BR0kEN-/gists{/gist_id}","starred_url":"https://api.github.com/users/BR0kEN-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BR0kEN-/subscriptions","organizations_url":"https://api.github.com/users/BR0kEN-/orgs","repos_url":"https://api.github.com/users/BR0kEN-/repos","events_url":"https://api.github.com/users/BR0kEN-/events{/privacy}","received_events_url":"https://api.github.com/users/BR0kEN-/received_events","type":"User","site_admin":false},"repo":{"id":54850276,"name":"SoapExtension","full_name":"BR0kEN-/SoapExtension","owner":{"login":"BR0kEN-","id":2760616,"avatar_url":"https://avatars.githubusercontent.com/u/2760616?v=3","gravatar_id":"","url":"https://api.github.com/users/BR0kEN-","html_url":"https://github.com/BR0kEN-","followers_url":"https://api.github.com/users/BR0kEN-/followers","following_url":"https://api.github.com/users/BR0kEN-/following{/other_user}","gists_url":"https://api.github.com/users/BR0kEN-/gists{/gist_id}","starred_url":"https://api.github.com/users/BR0kEN-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BR0kEN-/subscriptions","organizations_url":"https://api.github.com/users/BR0kEN-/orgs","repos_url":"https://api.github.com/users/BR0kEN-/repos","events_url":"https://api.github.com/users/BR0kEN-/events{/privacy}","received_events_url":"https://api.github.com/users/BR0kEN-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BR0kEN-/SoapExtension","description":"Behat extension for testing SOAP webservices","fork":true,"url":"https://api.github.com/repos/BR0kEN-/SoapExtension","forks_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/forks","keys_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/teams","hooks_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/hooks","issue_events_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/issues/events{/number}","events_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/events","assignees_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/assignees{/user}","branches_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/branches{/branch}","tags_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/tags","blobs_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/git/refs{/sha}","trees_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/statuses/{sha}","languages_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/languages","stargazers_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/stargazers","contributors_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/contributors","subscribers_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/subscribers","subscription_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/subscription","commits_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/commits{/sha}","git_commits_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/git/commits{/sha}","comments_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/comments{/number}","issue_comment_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/issues/comments{/number}","contents_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/contents/{+path}","compare_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/merges","archive_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/downloads","issues_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/issues{/number}","pulls_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/pulls{/number}","milestones_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/milestones{/number}","notifications_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/labels{/name}","releases_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/releases{/id}","deployments_url":"https://api.github.com/repos/BR0kEN-/SoapExtension/deployments","created_at":"2016-03-27T22:08:44Z","updated_at":"2016-03-27T22:08:45Z","pushed_at":"2016-03-31T09:43:41Z","git_url":"git://github.com/BR0kEN-/SoapExtension.git","ssh_url":"git@github.com:BR0kEN-/SoapExtension.git","clone_url":"https://github.com/BR0kEN-/SoapExtension.git","svn_url":"https://github.com/BR0kEN-/SoapExtension","homepage":null,"size":32,"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":"asgorobets:master","ref":"master","sha":"22f0983332a42029379d06a5937cc2507b19e48a","user":{"login":"asgorobets","id":869079,"avatar_url":"https://avatars.githubusercontent.com/u/869079?v=3","gravatar_id":"","url":"https://api.github.com/users/asgorobets","html_url":"https://github.com/asgorobets","followers_url":"https://api.github.com/users/asgorobets/followers","following_url":"https://api.github.com/users/asgorobets/following{/other_user}","gists_url":"https://api.github.com/users/asgorobets/gists{/gist_id}","starred_url":"https://api.github.com/users/asgorobets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asgorobets/subscriptions","organizations_url":"https://api.github.com/users/asgorobets/orgs","repos_url":"https://api.github.com/users/asgorobets/repos","events_url":"https://api.github.com/users/asgorobets/events{/privacy}","received_events_url":"https://api.github.com/users/asgorobets/received_events","type":"User","site_admin":false},"repo":{"id":52447705,"name":"SoapExtension","full_name":"asgorobets/SoapExtension","owner":{"login":"asgorobets","id":869079,"avatar_url":"https://avatars.githubusercontent.com/u/869079?v=3","gravatar_id":"","url":"https://api.github.com/users/asgorobets","html_url":"https://github.com/asgorobets","followers_url":"https://api.github.com/users/asgorobets/followers","following_url":"https://api.github.com/users/asgorobets/following{/other_user}","gists_url":"https://api.github.com/users/asgorobets/gists{/gist_id}","starred_url":"https://api.github.com/users/asgorobets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asgorobets/subscriptions","organizations_url":"https://api.github.com/users/asgorobets/orgs","repos_url":"https://api.github.com/users/asgorobets/repos","events_url":"https://api.github.com/users/asgorobets/events{/privacy}","received_events_url":"https://api.github.com/users/asgorobets/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asgorobets/SoapExtension","description":"Behat extension for testing SOAP webservices","fork":false,"url":"https://api.github.com/repos/asgorobets/SoapExtension","forks_url":"https://api.github.com/repos/asgorobets/SoapExtension/forks","keys_url":"https://api.github.com/repos/asgorobets/SoapExtension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asgorobets/SoapExtension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asgorobets/SoapExtension/teams","hooks_url":"https://api.github.com/repos/asgorobets/SoapExtension/hooks","issue_events_url":"https://api.github.com/repos/asgorobets/SoapExtension/issues/events{/number}","events_url":"https://api.github.com/repos/asgorobets/SoapExtension/events","assignees_url":"https://api.github.com/repos/asgorobets/SoapExtension/assignees{/user}","branches_url":"https://api.github.com/repos/asgorobets/SoapExtension/branches{/branch}","tags_url":"https://api.github.com/repos/asgorobets/SoapExtension/tags","blobs_url":"https://api.github.com/repos/asgorobets/SoapExtension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asgorobets/SoapExtension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asgorobets/SoapExtension/git/refs{/sha}","trees_url":"https://api.github.com/repos/asgorobets/SoapExtension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asgorobets/SoapExtension/statuses/{sha}","languages_url":"https://api.github.com/repos/asgorobets/SoapExtension/languages","stargazers_url":"https://api.github.com/repos/asgorobets/SoapExtension/stargazers","contributors_url":"https://api.github.com/repos/asgorobets/SoapExtension/contributors","subscribers_url":"https://api.github.com/repos/asgorobets/SoapExtension/subscribers","subscription_url":"https://api.github.com/repos/asgorobets/SoapExtension/subscription","commits_url":"https://api.github.com/repos/asgorobets/SoapExtension/commits{/sha}","git_commits_url":"https://api.github.com/repos/asgorobets/SoapExtension/git/commits{/sha}","comments_url":"https://api.github.com/repos/asgorobets/SoapExtension/comments{/number}","issue_comment_url":"https://api.github.com/repos/asgorobets/SoapExtension/issues/comments{/number}","contents_url":"https://api.github.com/repos/asgorobets/SoapExtension/contents/{+path}","compare_url":"https://api.github.com/repos/asgorobets/SoapExtension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asgorobets/SoapExtension/merges","archive_url":"https://api.github.com/repos/asgorobets/SoapExtension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asgorobets/SoapExtension/downloads","issues_url":"https://api.github.com/repos/asgorobets/SoapExtension/issues{/number}","pulls_url":"https://api.github.com/repos/asgorobets/SoapExtension/pulls{/number}","milestones_url":"https://api.github.com/repos/asgorobets/SoapExtension/milestones{/number}","notifications_url":"https://api.github.com/repos/asgorobets/SoapExtension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asgorobets/SoapExtension/labels{/name}","releases_url":"https://api.github.com/repos/asgorobets/SoapExtension/releases{/id}","deployments_url":"https://api.github.com/repos/asgorobets/SoapExtension/deployments","created_at":"2016-02-24T14:17:27Z","updated_at":"2016-03-27T22:08:40Z","pushed_at":"2016-03-31T09:43:41Z","git_url":"git://github.com/asgorobets/SoapExtension.git","ssh_url":"git@github.com:asgorobets/SoapExtension.git","clone_url":"https://github.com/asgorobets/SoapExtension.git","svn_url":"https://github.com/asgorobets/SoapExtension","homepage":null,"size":31,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11"},"html":{"href":"https://github.com/asgorobets/SoapExtension/pull/11"},"issue":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/issues/11"},"comments":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/asgorobets/SoapExtension/statuses/3608df2e08b5f0c7a8343579dc9c988cbdfc1f99"}}}}