public function testFromArrayMergesButDoesNotOverwriteReadonlies() { $data = array('foo' => 'bar', 'bar' => 'baz', 'baz' => 'qux'); AgaviConfig::clear(); AgaviConfig::set('baz', 'lol', true, true); AgaviConfig::fromArray($data); $this->assertEquals(array('baz' => 'lol') + $data, AgaviConfig::toArray()); }
public function tearDown() { AgaviConfig::clear(); AgaviConfig::fromArray($this->conf); }