Bluz\Tests\TestCase::resetApp PHP Method

resetApp() protected static method

Reset layout and Request
protected static resetApp ( )
    protected static function resetApp()
    {
        if (self::$app) {
            self::$app->useLayout(true);
            self::$app->resetRouter();
        }
        Proxy\Auth::clearIdentity();
        Proxy\Messages::popAll();
        Proxy\Request::setInstance(RequestFactory::fromGlobals());
        Proxy\Response::setInstance(new Bluz\Response\Response());
    }