AttachmentParserManagerFactoryTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 25
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A serviceIsProperlyCreated() 0 9 1
1
<?php
2
declare(strict_types=1);
3
4
namespace AcMailerTest\Attachment;
5
6
use AcMailer\Attachment\AttachmentParserManager;
7
use AcMailer\Attachment\AttachmentParserManagerFactory;
8
use Interop\Container\ContainerInterface;
9
use PHPUnit\Framework\TestCase;
10
11
class AttachmentParserManagerFactoryTest extends TestCase
12
{
13
    /**
14
     * @var AttachmentParserManagerFactory
15
     */
16
    private $factory;
17
18
    public function setUp()
19
    {
20
        $this->factory = new AttachmentParserManagerFactory();
21
    }
22
23
    /**
24
     * @test
25
     */
26
    public function serviceIsProperlyCreated()
27
    {
28
        $container = $this->prophesize(ContainerInterface::class);
29
        $container->get('config')->willReturn([]);
30
31
        $instance = $this->factory->__invoke($container->reveal());
32
33
        $this->assertInstanceOf(AttachmentParserManager::class, $instance);
34
    }
35
}
36