serviceIsProperlyCreated()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
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