phpspec/phpspec — pull request #210 by norzechowicz (2013-11-05 21:06:46+00:00)
Title: Fixed asking about generating code

It looks that after https://github.com/phpspec/phpspec/commit/d1bc979400a761e76536af041f9875dd33f7d63f phpspec no longer asks about generating code when class or method not exist. I believe that rethrowing FractureException in ConstructorDecorator fixes the problem.
I just dont know why when I change ```$subject->__call('getWrappedObject', array())``` into ```$subject->callOnWrappedObject('getWrappedObject', array())``` like in other specs tests fail with following message:
```
rethrows fracture errors as phpspec error exceptions
expected exception of class "PhpSpec\Exception\Fractur"..., but got
[exc:PhpSpec\Exception\Example\ErrorException("notice: Undefined variable: wrapped in
/home/norbert/Workspace/PHP/phpspec/phpspec/src/PhpSpec/Wrapper/Subject/Expectation/ConstructorDecorator.php line
33")].
```