sebastianbergmann/phpunit — pull request #817 by qris (2013-02-12 16:24:26+00:00)
Title: Request merge of Lars Tesmer's assertThrowsException assertion.

Note that this is a minimal implementation, for demonstration purposes, with
just enough code to make it work in PHPUnit.
For a longer discussion see:
http://lars-tesmer.com/blog/2011/08/29/phpunit-better-syntax-for-expecting-exceptions/

Example usage:
$someClass = new SomeClass();
$this->assertThrowsException('InvalidArgumentException', function () use($someClass) {
$someClass->someMethod();
}
);

Conflicts:

Tests/Framework/AssertTest.php