lithium\tests\cases\analysis\logger\adapter\CacheTest::setUp PHP Method

setUp() public method

Sets up and configers the logger and also the cache storage for testing.
public setUp ( )
    public function setUp()
    {
        CacheStorage::config(array('cachelog' => array('adapter' => 'Memory')));
        $this->cachelog = new Cache(array('key' => 'cachelog_testkey', 'config' => 'cachelog'));
        Logger::config(array('cachelog' => array('adapter' => $this->cachelog, 'key' => 'cachelog_testkey', 'config' => 'cachelog')));
    }