Lines Matching refs:serialize
144 …$this->serializer->serialize($arr, $this->getFormat(), SerializationContext::create()->setSerializ…
168 …$this->serializer->serialize($arr, $this->getFormat(), SerializationContext::create()->setSerializ…
179 $this->serialize($typeAliasing)
189 …$this->serializer->serialize($obj, $this->getFormat(), SerializationContext::create()->setSerializ…
224 $this->serialize(null, $context);
233 self::assertEquals($this->getContent('null'), $this->serialize(null, $context), $type);
254 self::assertEquals($this->getContent('string'), $this->serialize('foo'));
270 $this->serialize($person);
290 …self::assertEquals($this->getContent('person_secret_hide'), $serializer->serialize($person, $this-…
383 … self::assertEquals($this->getContent($json), $serializer->serialize($person, $this->getFormat()));
391 self::assertEquals($this->getContent('boolean_' . $strBoolean), $this->serialize($boolean));
408 self::assertSame($this->getContent($key), $this->serialize($value));
438 $this->assertEquals($this->getContent('simple_object'), $this->serialize($obj));
447 …self::assertEquals($this->getContent('simple_object'), $this->serialize($obj = new SimpleObject('f…
456 …$this->assertEquals($this->getContent('simple_object'), $this->serialize($obj = new SimpleObjectWi…
466 self::assertEquals($this->getContent('array_strings'), $this->serialize($data));
476 self::assertEquals($this->getContent('array_booleans'), $this->serialize($data));
486 self::assertEquals($this->getContent('array_integers'), $this->serialize($data));
500 self::assertEquals($this->getContent('array_empty'), $this->serialize($data));
510 self::assertEquals($this->getContent('array_floats'), $this->serialize($data));
520 self::assertEquals($this->getContent('array_objects'), $this->serialize($data));
532 … self::assertEquals($this->getContent('array_list_and_map_difference'), $this->serialize($data));
543 $serializedObject = $this->serialize($object);
572 $serializedObject = $this->serialize($object);
605 $serializedObject = $this->serialize($object);
627 …self::assertEquals($this->getContent('array_mixed'), $this->serialize(['foo', 1, true, new SimpleO…
636 self::assertEquals($this->getContent($key), $this->serialize($value));
660 self::assertEquals($this->getContent($key), $this->serialize($value));
681 self::assertEquals($this->getContent('timestamp'), $this->serialize($value));
698 …self::assertEquals($this->getContent('date_interval'), $this->serializer->serialize($duration, $th…
715 self::assertEquals($this->getContent('blog_post'), $this->serialize($post));
744 …self::assertEquals($this->getContent('blog_post_unauthored'), $this->serialize($post, Serializatio…
767 …self::assertEquals($this->getContent('author_expression'), $serializer->serialize($author, $this->…
779 …self::assertEquals($this->getContent('author_expression_context'), $serializer->serialize($author,…
790 self::assertEquals($this->getContent('author_expression'), $this->serialize($author));
796 self::assertEquals($this->getContent('readonly'), $this->serialize($author));
808 self::assertEquals($this->getContent('readonly'), $this->serialize($author));
820 self::assertEquals($this->getContent('price'), $this->serialize($price));
831 self::assertEquals($this->getContent('order'), $this->serialize($order));
841 self::assertEquals($this->getContent('currency_aware_price'), $this->serialize($price));
851 …self::assertEquals($this->getContent('order_with_currency_aware_price'), $this->serialize($order));
862 $result = $this->serialize($inline);
873 $result = $this->serialize($inline);
884 self::assertEquals($this->getContent('empty_child'), $this->serialize($inline));
891 self::assertEquals($this->getContent('empty_child'), $this->serialize($inline));
896 self::assertEquals($this->getContent('empty_child'), $this->serialize($inline, $context));
903 self::assertEquals($this->getContent('empty_child_skip'), $this->serialize($inline));
910 self::assertEquals($this->getContent('empty_child_skip'), $this->serialize($inline));
915 … self::assertEquals($this->getContent('empty_child_skip'), $this->serialize($inline, $context));
920 self::assertEquals($this->getContent('log'), $this->serialize($log = new Log()));
932 … self::assertEquals($this->getContent('circular_reference_collection'), $this->serialize($object));
938 self::assertEquals($this->getContent('circular_reference'), $this->serialize($object));
962 self::assertEquals($this->getContent('lifecycle_callbacks'), $this->serialize($object));
978 self::assertEquals($this->getContent('form_errors'), $this->serialize($errors));
999 self::assertEquals($this->getContent('nested_form_errors'), $this->serialize($form));
1028 $this->serialize($form);
1038 self::assertEquals($this->getContent('constraint_violation'), $this->serialize($violation));
1047 … self::assertEquals($this->getContent('constraint_violation_list'), $this->serialize($violations));
1058 self::assertEquals($this->getContent('orm_proxy'), $this->serialize($object));
1070 self::assertEquals($this->getContent('orm_proxy'), $this->serialize($object));
1077 self::assertEquals($this->getContent('custom_accessor'), $this->serialize($post));
1084 self::assertEquals($this->getContent('mixed_access_types'), $this->serialize($object));
1096 …self::assertEquals($this->getContent('accessor_order_child'), $this->serialize(new AccessorOrderCh…
1097 …self::assertEquals($this->getContent('accessor_order_parent'), $this->serialize(new AccessorOrderP…
1098 …self::assertEquals($this->getContent('accessor_order_methods'), $this->serialize(new AccessorOrder…
1105 …self::assertEquals($this->getContent('groups_all'), $this->serializer->serialize($groupsObject, $t…
1109 …$this->serializer->serialize($groupsObject, $this->getFormat(), SerializationContext::create()->se…
1114 …$this->serializer->serialize($groupsObject, $this->getFormat(), SerializationContext::create()->se…
1119 $this->serializer->serialize($groupsObject, $this->getFormat())
1124 …$this->serializer->serialize($groupsObject, $this->getFormat(), SerializationContext::create()->se…
1129 …$this->serializer->serialize($groupsObject, $this->getFormat(), SerializationContext::create()->se…
1162 $this->serializer->serialize(
1193 $this->serializer->serialize($groupsObject, $this->getFormat());
1198 …self::assertEquals($this->getContent('virtual_properties'), $this->serialize(new ObjectWithVirtual…
1211 …$serializer->serialize(new ObjectWithVersionedVirtualProperties(), $this->getFormat(), Serializati…
1216 …$serializer->serialize(new ObjectWithVersionedVirtualProperties(), $this->getFormat(), Serializati…
1221 …$serializer->serialize(new ObjectWithVersionedVirtualProperties(), $this->getFormat(), Serializati…
1237 …$serialized = $this->serializer->serialize(new CustomDeserializationObject('sometext'), $this->get…
1244 …self::assertEquals($this->getContent('input'), $this->serializer->serialize(new Input(), $this->ge…
1249 …self::assertEquals($this->getContent('hash_empty'), $this->serializer->serialize(new ObjectWithEmp…
1259 …$this->serialize(new Comment(null, 'foo'), SerializationContext::create()->setSerializeNull(false))
1264 … $this->serialize(new Comment(null, 'foo'), SerializationContext::create()->setSerializeNull(true))
1278 $this->serialize(new DiscriminatorGroupCar(5), $context)
1289 $this->serialize(new Car(5))
1293 $this->serialize(new Post('Post Title'))
1297 $this->serialize(new ImagePost('Image Post Title'))
1365 $this->serialize($garage)
1387 $this->serialize($garage)
1434 …self::assertEquals($this->getContent('tree'), $this->serializer->serialize($data, $this->getFormat…
1442 $serialized = $this->serialize($data, $context);
1478 …self::assertEquals($this->getContent('nullable_arrays'), $this->serializer->serialize($object, $th…
1496 $this->serializer->serialize($arr, $this->getFormat(), $serializationContext)
1514 $this->serializer->serialize('foo', $this->getFormat(), null, 'Virtual');
1539 self::assertSame($expected, $this->serialize($collection));
1549 self::assertEquals($this->getContent('authors_inline'), $this->serialize($list));
1560 self::assertEquals($this->getContent('generator'), $this->serialize($withGenerator));
1578 self::assertEquals($this->getContent('iterator'), $this->serialize($withIterator));
1606 protected function serialize($data, ?Context $context = null) function in JMS\\Serializer\\Tests\\Serializer\\BaseSerializationTest
1608 return $this->serializer->serialize($data, $this->getFormat(), $context);