phpspec/phpspec2 — pull request #116 by gquemener (2013-03-13 15:56:07+00:00)
Title: Match all properties of exception and not only the message

Properties line and file are ignored, because they are environnement
related.

- should{Not}Throw('\Exception') will only match instance of
- should{Not}Throw(new \Exception('failure')) will only match message
property
- should{Not}Throw(new \MyException('failure', 123, true)) will match
message, code, and all other set custom properties