Lines Matching refs:object
76 $object = $this->deserialize(
87 self::assertInstanceOf('stdClass', $object->getElement());
88 …self::assertInstanceOf('JMS\Serializer\Tests\Fixtures\AccessorSetterElement', $object->getElement(…
89 self::assertEquals('attribute-different', $object->getElement()->element->getAttribute());
90 self::assertEquals('element-different', $object->getElement()->element->getElement());
91 self::assertEquals(['collectionEntry' => 'collectionEntry'], $object->getCollection());
204 …$object = $this->serializer->deserialize($xml, 'JMS\Serializer\Tests\Fixtures\ObjectWithAbsentXmlL…
205 self::assertEquals($object->absentAndNs, []);
212 …$object = $this->serializer->deserialize($xml, 'JMS\Serializer\Tests\Fixtures\ObjectWithAbsentXmlL…
213 self::assertEquals($object->absentAndNs, ['foo']);
218 $object = new ObjectWithNamespacesAndList();
219 $object->name = 'name';
220 $object->nameAlternativeB = 'nameB';
222 $object->phones = ['111', '222'];
223 $object->addresses = ['A' => 'Street 1', 'B' => 'Street 2'];
225 $object->phonesAlternativeB = ['555', '666'];
226 $object->addressesAlternativeB = ['A' => 'Street 5', 'B' => 'Street 6'];
228 $object->phonesAlternativeC = ['777', '888'];
229 $object->addressesAlternativeC = ['A' => 'Street 7', 'B' => 'Street 8'];
231 $object->phonesAlternativeD = ['999', 'AAA'];
232 $object->addressesAlternativeD = ['A' => 'Street 9', 'B' => 'Street A'];
236 $this->serialize($object, SerializationContext::create())
239 $object,
240 … $this->deserialize($this->getContent('object_with_namespaces_and_list'), get_class($object))
246 $object = new ObjectWithNamespacesAndNestedList();
259 $object->personCollection = $personCollection;
263 $this->serialize($object, SerializationContext::create())
266 $object,
267 …$this->deserialize($this->getContent('object_with_namespaces_and_nested_list'), get_class($object))
343 $object = new ObjectWithNamespacesAndList();
345 $object->phones = [];
346 $object->addresses = [];
348 $object->phonesAlternativeB = [];
349 $object->addressesAlternativeB = [];
351 $object->phonesAlternativeC = ['777', '888'];
352 $object->addressesAlternativeC = ['A' => 'Street 7', 'B' => 'Street 8'];
354 $object->phonesAlternativeD = [];
355 $object->addressesAlternativeD = [];
359 $this->serialize($object, SerializationContext::create())
362 … $this->deserialize($this->getContent('object_with_only_namespaces_and_list'), get_class($object));
363 self::assertEquals($object, $deserialized);
373 …$object = new ObjectWithXmlNamespaces('This is a nice title.', 'Foo Bar', new \DateTime('2011-07-3…
375 $serialized = $this->serialize($object);
378 $xml = simplexml_load_string($this->serialize($object));