namespace Symfony\Bridge\Twig\Tests\Mime;
use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Twig\Mime\NotificationEmail;
class NotificationEmailTest extends TestCase
{ public function test() { $email =
(new NotificationEmail()) ->
markdown('Foo'
) ->
exception(new \
Exception()) ->
importance(NotificationEmail::IMPORTANCE_HIGH
) ->
action('Bar', 'http://example.com/'
) ->
context(['a' => 'b'
]) ;
$this->
assertEquals([ 'importance' => NotificationEmail::IMPORTANCE_HIGH,
'content' => 'Foo',
'exception' => true,
'action_text' => 'Bar',