yield 3 => 'three';
})(),
],
] );
$this->
assertSame('{"_embedded":{"list":["test","value"],"map":{"key":"value","0":"test"},"integer":{"1":"one","3":"three"}}}',
$content);
} public function testResponseOtherTraversable() { $arrayObject =
new \
ArrayObject(['__symfony_json__' => '__symfony_json__'
]);
$iteratorAggregate =
new class() implements \IteratorAggregate
{ public function getIterator(): \Traversable
{ return new \
ArrayIterator(['__symfony_json__'
]);
} };
$jsonSerializable =
new class() implements \IteratorAggregate, \JsonSerializable
{ public function getIterator(): \Traversable
{