/** * Can we create a cached object? * * @access public */ public function testCreateCachedObject() { // Load the config file Core\Config::load('MyProject'); Core\Config::set('cache', 'enable', true, true); // Put the cache Core\Cache::put('foo', 'bar'); // The file exists? $this->assertTrue(Core\Cache::has('foo')); // And the file has the correct contents? $this->assertEquals(Core\Cache::get('foo'), 'bar'); }