public function testSettingAutomaticQueryClass() { $path = __DIR__ . '/fixtures/datastore/writable'; $config = new Config($path . '/'); // This isnt great testing but will do for now. $className = '\\JamesMoss\\Flywheel\\'; $className .= function_exists('apcu_fetch') || function_exists('apc_fetch') ? 'CachedQuery' : 'Query'; $this->assertSame($className, $config->getOption('query_class')); }