{"action":"created","issue":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1983","labels_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1983/labels{/name}","comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1983/comments","events_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1983/events","html_url":"https://github.com/sebastianbergmann/phpunit/pull/1983","id":120531106,"number":1983,"title":"Allow skipping of testcases that have have @expectedException annotation","user":{"login":"dshafik","id":58074,"avatar_url":"https://avatars.githubusercontent.com/u/58074?v=3","gravatar_id":"","url":"https://api.github.com/users/dshafik","html_url":"https://github.com/dshafik","followers_url":"https://api.github.com/users/dshafik/followers","following_url":"https://api.github.com/users/dshafik/following{/other_user}","gists_url":"https://api.github.com/users/dshafik/gists{/gist_id}","starred_url":"https://api.github.com/users/dshafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dshafik/subscriptions","organizations_url":"https://api.github.com/users/dshafik/orgs","repos_url":"https://api.github.com/users/dshafik/repos","events_url":"https://api.github.com/users/dshafik/events{/privacy}","received_events_url":"https://api.github.com/users/dshafik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-05T05:30:58Z","updated_at":"2015-12-05T06:56:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/pulls/1983","html_url":"https://github.com/sebastianbergmann/phpunit/pull/1983","diff_url":"https://github.com/sebastianbergmann/phpunit/pull/1983.diff","patch_url":"https://github.com/sebastianbergmann/phpunit/pull/1983.patch"},"body":"This allows for something like:\r\n\r\n```php\r\n/**\r\n  * @expectedException \\PHPUnit_Framework_Error_Warning\r\n  */\r\nfunction testSomething() {\r\n     if (!version_compare(PHP_VERSION, '7.0.0', '<')) {\r\n         $this->markTestSkipped(\"PHP < 7.0.0 is required\");\r\n     }\r\n}\r\n```\r\n\r\nCurrently it fails with:\r\n\r\n`Failed asserting that exception of type \"PHPUnit_Framework_SkippedTestError\" matches expected exception \"\\PHPUnit_Framework_Error_Notice\". Message was: \"PHP < 7.0.0 is required\"`"},"comment":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/comments/162156847","html_url":"https://github.com/sebastianbergmann/phpunit/pull/1983#issuecomment-162156847","issue_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1983","id":162156847,"user":{"login":"sebastianbergmann","id":25218,"avatar_url":"https://avatars.githubusercontent.com/u/25218?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbergmann","html_url":"https://github.com/sebastianbergmann","followers_url":"https://api.github.com/users/sebastianbergmann/followers","following_url":"https://api.github.com/users/sebastianbergmann/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbergmann/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbergmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbergmann/subscriptions","organizations_url":"https://api.github.com/users/sebastianbergmann/orgs","repos_url":"https://api.github.com/users/sebastianbergmann/repos","events_url":"https://api.github.com/users/sebastianbergmann/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbergmann/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T06:56:24Z","updated_at":"2015-12-05T06:56:24Z","body":"That could be expressed using `@requires < PHP 7`."}}