Eva\EvaEngine\EvaEngineTest\Interceptor\DispatchTest::testTextCacheBodyOnly PHP Method

testTextCacheBodyOnly() public method

    public function testTextCacheBodyOnly()
    {
        $this->di->getViewCache()->save('d6bd338ec8eb8666f3d054566f335039_b', 'foo');
        $interceptor = new DispatchInterceptor();
        /**
         * @var Dispatcher $dispatcher
        */
        $dispatcher = $this->di->getDispatcher();
        $dispatcher->setParams(array('_dispatch_cache' => 'lifetime=100'));
        $this->assertEquals(true, $interceptor->injectInterceptor($dispatcher));
    }