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