Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /**
  * Set a new configuration value
  * @param string $key
  * @param mixed $value
  * @return null
  */
 public function setConfigValue($key, $value)
 {
     $this->config->set($key, $value);
 }