public function createType()
 {
     $type = new JsonObject();
     foreach ($this->children as $value) {
         $type->add($value->key, $value->createType());
     }
     return $type;
 }
Пример #2
0
 public function testMergeJsonObjectWithAJsonLiteralContainingAnArray()
 {
     $this->setExpectedException('\\InvalidArgumentException');
     $object = new JsonObject();
     $object->add('Foo', 'Bar')->add('Bar', 'Foo');
     $object->merge('["Bli", "Blou", "Bla"]');
 }