sebastianbergmann/phpunit — Issue #398: Testing for (regular) Exceptions
Author: alcohol
Created: 2011-11-07 14:03:12+00:00
State: open

> You should be as specific as possible when testing exceptions. Testing for classes that are too generic might lead to undesirable side-effects. Accordingly, testing for the Exception class with @expectedException or setExpectedException() is no longer permitted.

Seriously? I'm not allowed to throw regular Exceptions in my code? You're going to dictate to us what kind of exceptions we should use? I'm all for decent practices, but forcing your opinion onto others in such a manner is a bit too elitist if you ask me.