sebastianbergmann/phpunit — pull request #1397 by Iazel (2014-08-17 14:56:37+00:00)
Title: assertException

Normalize the asserting of exception with the common style, instead of the annotation one.
In tests and doc comments you can see all the use cases, here is what I think is the most common:

```php
$this->assertException('MyException', function() {
throw new MyException;
});
```

Obviously the callback should contain the piece of code we expect to raise some sort of exception :)