public function test_getTemplates()
 {
     /** === Test Data === */
     $FILE = PRJ_ROOT . '/' . Main_Test::FILE_CONFIG_JSON_NVC;
     /** === Call and asserts  === */
     $config = new Config($FILE);
     $tmpls = $config->getTemplates();
     $this->assertTrue(is_array($tmpls));
     $this->assertEquals(4, count($tmpls));
 }
 /**
  * Merge other config object to the current.
  *
  * @param Config $other
  */
 public function merge(Config $other)
 {
     /* merge variables */
     foreach ($other->getVars() as $key => $value) {
         $this->vars[$key] = $value;
     }
     /* merge templates */
     foreach ($other->getTemplates() as $one) {
         $this->templates[] = $one;
     }
 }