New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with exception masking and generation for not found class #269
Comments
Hi, I have the same issue.
in file: I don't know how to figure out it at this moment. |
ping @MarcelloDuarte @everzet Sorry guys but this is really annoying stuff. I was trying to fix that but right now I am not really sure how to do that. |
…hpspec#214). Change spec and add new scenarios.
Fix issue #269 with exception masking and generation class/method bug
Fixed in #276 |
Gratulacje !!! i wielkie dzięki W dniu 05.02.2014 o 08:30 Leszek Prabucki notifications@github.com pisze:
Pozdrawiam, mail: pawel@sixpoints.pl |
Awesome! Thanks and good job @l3l0!! |
Hello,
We (together with @omenrpg and @skowi) found some issue in phpspec example runner.
When we have stub like
$user->changePassword('123')->shouldBeCalled();
phpspec masks all exception throwed by us (end users) or even by phpspec exceptions itself and instead show to us expectation fail (and mask our exception) - this even block phpspec from generation of not found class. This is really painful and confusingI created some simple project to show what we are doing: https://github.com/l3l0/phpspec-exception-mask-issue
Expected results of call
php bin/phpspec run
:Actual results of call
php bin/phpspec run
:After some investigation we found that this was added in commit: 0780076 by
$this->runMaintainersTeardown($maintainers, $example, $context, $matchers, $collaborators);
stuff.. so all expectations are checked before exception is throw so if some expectation fail some kind of failure expectation exception is throw firstThe text was updated successfully, but these errors were encountered: