use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer
as SymfonySerializer;
class TransportNamesStampTest extends TestCase
{ public function testGetSenders() { $configuredSenders =
['first_transport', 'second_transport', 'other_transport'
];
$stamp =
new TransportNamesStamp($configuredSenders);
$stampSenders =
$stamp->
getTransportNames();
$this->
assertEquals(\
count($configuredSenders), \
count($stampSenders));
foreach ($configuredSenders as $key =>
$sender) { $this->
assertSame($sender,
$stampSenders[$key]);
} } public function testDeserialization() { $stamp =
new TransportNamesStamp(['foo'
]);
$serializer =
new Serializer(