Passed
Push — master ( 2823db...e46f60 )
by Alexander
10:02
created

AfterSendTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2
1
<?php
2
3
namespace Yiisoft\Mailer\Tests\Event;
4
5
use Yiisoft\Mailer\Event\AfterSend;
6
use Yiisoft\Mailer\Tests\TestCase;
7
use Yiisoft\Mailer\MessageInterface;
8
9
class AfterSendTest extends TestCase
10
{
11
    /**
12
     * @dataProvider successfulProvider
13
     */
14
    public function testIsSuccessful(MessageInterface $message): void
15
    {
16
        $event = new AfterSend($message);
17
        $this->assertSame($message, $event->getMessage());
18
    }
19
20
    public function successfulProvider(): array
21
    {
22
        return [
23
            [$this->createMessage('foo')],
24
            [$this->createMessage('bar')],
25
        ];
26
    }
27
}
28