Phalcon\Test\integration\Mvc\View\SimpleCest::getDi PHP Method

getDi() protected method

Setup viewCache service and DI
protected getDi ( ) : Di
return Phalcon\Di
    protected function getDi()
    {
        $di = new Di();
        $di->set('viewCache', function () {
            return new File(new Output(['lifetime' => 2]), ['cacheDir' => PATH_CACHE]);
        });
        return $di;
    }