FactoryTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFactory() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Symplify\NetteAdapterForSymfonyBundles\Tests\Container;
6
7
use Doctrine\ORM\EntityManager;
8
use PHPUnit\Framework\TestCase;
9
use Symplify\NetteAdapterForSymfonyBundles\Tests\ContainerFactory;
10
11
final class FactoryTest extends TestCase
12
{
13
    public function testFactory()
14
    {
15
        $container = (new ContainerFactory())->createWithConfig(__DIR__ . '/FactorySource/config/init.neon');
16
17
        /** @var EntityManager $entityManager */
18
        $entityManager = $container->getByType(EntityManager::class);
19
        $this->assertInstanceOf(EntityManager::class, $entityManager);
20
    }
21
}
22