Extends
lithium\test\Unit
Sets up and configers the logger and also the cache storage for testing.
Source
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'
)
));
}