/** * Tests that the index type always remains associtive * @return void */ public function testDefaultOptions() { $config = new Config(); $this->assertEquals(Config::INDEX_MIXED, $config->getIndexType()); $this->assertFalse($config->isReadOnly()); $config = new Config(null, array('indexType' => Config::INDEX_MIXED, 'readonly' => true)); $this->assertEquals(Config::INDEX_MIXED, $config->getIndexType()); $this->assertTrue($config->isReadOnly()); }