phpspec/phpspec — pull request #209 by MarcelloDuarte (2013-11-03 15:30:37+00:00)
Title: Fix expecation so that throw matcher is able to detect exception in constructor

Because the subject is instantiated before the matcher is called, an exception in construction would never reach the throw matcher. I've added decorators to the expectation object. One specific decorator will stop exceptions in constructor until we get to the matcher, but it will no stop phpspec ErrorExceptions, so we can see php errors as they rise.