use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
use Symfony\Component\Serializer\Normalizer\MimeMessageNormalizer;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Normalizer\PropertyNormalizer;
use Symfony\Component\Serializer\Serializer;
class TemplatedEmailTest extends TestCase
{ public function test() { $email =
new TemplatedEmail();
$email->
context($context =
['product' => 'Symfony'
]);
$this->
assertEquals($context,
$email->
getContext());
$email->
textTemplate($template = 'text'
);
$this->
assertEquals($template,
$email->
getTextTemplate());
$email->
htmlTemplate($template = 'html'
);
$this->
assertEquals($template,
$email->
getHtmlTemplate());
} public function testSerialize() {