malyshev / yii-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.

Home Page:http://www.yiiframework.com/extension/yii-debug-toolbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YiiDebugToolbar makes unit test crash

mogab9 opened this issue · comments

YiiDebugToolbar makes my unit test fail when It is enabled in my main.conf file. I think that I have this problem when I unit test a feature and there's a call to a controller inside my test.

My fix was to add this at the beginning of init() in YiiDebugToolbarRoute.php:

if (false === $this->enabled) return;

Works well after that =]