Example #1
0
 public function test5_Importing()
 {
     # importing
     static::$collection->importYAML('yaml', "part3:\n    item1: stuff\n    item2: { name: YAML }\n");
     $this->assertTrue(static::$collection->has('yaml.part3.item2.name'));
     static::$collection->thaw('json');
     static::$collection->importJSON('json', '
         {
             "item1": "assorted",
             "item2": {
                 "place": "Downtown"
             }
         }');
     $this->assertTrue(static::$collection->has('json.item2.place'));
 }