Behat/mink And Yii

I’m following the insructions here:

In one of my contexts handlers i have $controller->registerRedirects($user), which is a function of a behavior assigned to $controller that ends up doing $this->owner->redirect(Yii::app()->getModule(‘user’)->returnUrl);

Even with $this->getSession()->getDriver()->getClient()->followRedirects(false); behat seems to fall over on the redirect, is what I’m trying to do not possible?

Any help greatly appreciated.


I’ve figured out it’s because $terminate = true by default for CHttpRequest::redirect($url,$terminate=true,$statusCode=302), is there any way this is configurable based on context, e.g via the test.php config file?