Example #1
0
 /**
  * @param array $config
  **/
 protected function setup(array $config = [])
 {
     // apply additional config
     if (count($config) > 0) {
         Config::apply($config);
     }
 }
Example #2
0
 /**
  * @expectedException LogicException
  * @expectedExceptionMessage Identifier must be string.
  */
 public function testApplyNonStringKey()
 {
     Config::apply([42 => 'value']);
 }