MessageFactoryTest::testCreate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Framework\Email;
6
7
use PHPUnit\Framework\TestCase;
8
use Symfony\Component\Mime\Email;
9
10
class MessageFactoryTest extends TestCase
11
{
12
    /** @var MessageFactory - System Under Test */
13
    protected MessageFactory $sut;
14
15
    public function setUp(): void
16
    {
17
        parent::setUp();
18
19
        $this->sut = new MessageFactory();
20
    }
21
22
    public function testCreate(): void
23
    {
24
        $subject = 'foo';
0 ignored issues
show
Unused Code introduced by
The assignment to $subject is dead and can be removed.
Loading history...
25
26
        $actualResult = $this->sut->create();
27
28
        $this->assertInstanceOf(Email::class, $actualResult);
29
    }
30
}
31