Lines Matching refs:serialize
32 self::assertEquals('"foo"', $serializer->serialize('foo', 'json'));
35 ', $serializer->serialize('foo', 'xml'));
61 …self::assertEquals('"2020-04-16T00:00:00+00:00"', $serializer->serialize(new \DateTime('2020-04-16…
62 … self::assertEquals('[1,2,3]', $serializer->serialize(new \ArrayIterator([1, 2, 3]), 'json'));
88 … self::assertEquals('{}', $this->builder->build()->serialize(new \DateTime('2020-04-16'), 'json'));
102 $this->builder->build()->serialize('foo', 'xml');
143 $result = $serializer->serialize(['value' => null], 'json');
176 $result = $serializer->serialize(['value' => null], 'json');
190 $result = $serializer->serialize(['value' => null, 'not_null' => 'ok'], 'json');
236 self::assertEquals($json, $serializer->serialize($person, 'json'));
250 $serialized = $serializer->serialize($person, 'json');