Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
15 / 15
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3// ╔════════════════════════════════════════════════════════════╗
4// ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║
5// ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com>     ║
6// ╚════════════════════════════════════════════════════════════╝
7
8declare(strict_types=1);
9
10pest()->group('unit');
11
12use Phexium\Plugin\Mailer\Adapter\NullMailer;
13use Phexium\Plugin\Mailer\MessageBuilder;
14
15describe('Sending', function (): void {
16    it('does not throw', function (): void {
17        $mailer = new NullMailer();
18
19        $message = MessageBuilder::create()
20            ->from('sender@example.com')
21            ->to('to@example.com')
22            ->subject('Test')
23            ->textBody('Body')
24            ->build()
25        ;
26
27        $mailer->send($message);
28
29        expect(true)->toBeTrue();
30    });
31});