Phalcon\Test\Unit\SecurityTest::setupDI PHP Method

setupDI() private method

Set up the environment.
private setupDI ( ) : Di
return Phalcon\Di
    private function setupDI()
    {
        Di::reset();
        $di = new Di();
        $di->setShared('session', function () {
            return new PhalconMemorySession();
        });
        $di->setShared('request', function () {
            return new Request();
        });
        return $di;
    }