function it_can_serialize_map_values() { $this->serialize([])->shouldReturn("[]"); $this->serialize([1, 'foo' => [2, 'bar']])->shouldReturn("{\"0\":1,\"foo\":[2,\"bar\"]}"); }