I'm looking for something like break
for loops.
Here's some example code (using Symfony's lime) where stop()
would not let the class continue and I_DONT_WANT_THIS_TO_RUN()
would not be executed.
$browser->isStatusCode(200)
->isRequestParameter('module', 'home')
->isRequestParameter('action', 'index')
->click('Register')
->stop()
->I_DONT_WANT_THIS_TO_RUN();
$browser->thenThisRunsOkay();
Calling $this->__deconstruct();
from within stop()
doesn't seem to do the trick. Is there a function I can call within stop()
that would make that happen?