MessageFactoryTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCreate() 0 7 1
A setUp() 0 5 1
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