{"action":"created","issue":{"url":"https://api.github.com/repos/php-annotations/php-annotations/issues/104","labels_url":"https://api.github.com/repos/php-annotations/php-annotations/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/php-annotations/php-annotations/issues/104/comments","events_url":"https://api.github.com/repos/php-annotations/php-annotations/issues/104/events","html_url":"https://github.com/php-annotations/php-annotations/pull/104","id":124381088,"number":104,"title":"Fail test cases when a PHP error occurs after a successful check","user":{"login":"benesch","id":882976,"avatar_url":"https://avatars.githubusercontent.com/u/882976?v=3","gravatar_id":"","url":"https://api.github.com/users/benesch","html_url":"https://github.com/benesch","followers_url":"https://api.github.com/users/benesch/followers","following_url":"https://api.github.com/users/benesch/following{/other_user}","gists_url":"https://api.github.com/users/benesch/gists{/gist_id}","starred_url":"https://api.github.com/users/benesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benesch/subscriptions","organizations_url":"https://api.github.com/users/benesch/orgs","repos_url":"https://api.github.com/users/benesch/repos","events_url":"https://api.github.com/users/benesch/events{/privacy}","received_events_url":"https://api.github.com/users/benesch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-30T18:06:12Z","updated_at":"2016-01-04T13:21:21Z","closed_at":"2016-01-04T13:21:13Z","pull_request":{"url":"https://api.github.com/repos/php-annotations/php-annotations/pulls/104","html_url":"https://github.com/php-annotations/php-annotations/pull/104","diff_url":"https://github.com/php-annotations/php-annotations/pull/104.diff","patch_url":"https://github.com/php-annotations/php-annotations/pull/104.patch"},"body":"Given a test case like\r\n\r\n```\r\npublic function testIsBroken()\r\n{\r\n    this->check(true, 'dummy value');\r\n    $x[123585];\r\n}\r\n```\r\n\r\nthe test case will erroneously be marked as passing and the PHP error silently swallowed. This PR ensures that if no exception is expected, the test case is properly failed."},"comment":{"url":"https://api.github.com/repos/php-annotations/php-annotations/issues/comments/168675174","html_url":"https://github.com/php-annotations/php-annotations/pull/104#issuecomment-168675174","issue_url":"https://api.github.com/repos/php-annotations/php-annotations/issues/104","id":168675174,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T13:21:21Z","updated_at":"2016-01-04T13:21:21Z","body":"Merging. Thanks @benesch ."}}