Пример #1
0
 public function testSetValueNullRemovesKey()
 {
     $default = 'default';
     $this->mockValue = null;
     $this->setMockWriteExpectation($this->once());
     $this->config->set($this->key, $this->mockValue);
     $value = $this->config->get($this->key, $default);
     $this->assertEquals($default, $value);
 }
Пример #2
0
 /**
  * Clear the cache of the configuration
  * @return null
  */
 public function clearConfigCache()
 {
     $this->config->clearCache();
 }