public function testConfigConstructorOptions() { $config = new Config(array('dir' => __DIR__, 'ext' => 'test', 'gzip' => true, 'cache' => false, 'formatter' => null, 'swap_memory_limit' => 100)); $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR, $config->getDir()); $this->assertEquals('.test.gz', $config->getExt()); $this->assertTrue($config->useGzip()); $this->assertFalse($config->getCache()); $this->assertInstanceOf('Flintstone\\Formatter\\SerializeFormatter', $config->getFormatter()); $this->assertEquals(100, $config->getSwapMemoryLimit()); }
/** * Get the path to the database file. * * @return string */ public function getPath() { return $this->config->getDir() . $this->getName() . $this->config->getExt(); }