lithium\tests\integration\storage\CacheTest::testReadThroughWithStrategies PHP Method

testReadThroughWithStrategies() public method

    public function testReadThroughWithStrategies()
    {
        Cache::config(array('default' => array('adapter' => 'Memory', 'strategies' => array('Serializer'))));
        $expected = 'bar';
        $result = Cache::read('default', 'foo', array('write' => array('+5 seconds' => 'bar')));
        $this->assertEqual($expected, $result);
    }