Completed
Push — master ( e4a43c...c6b5e7 )
by Tomáš
15:17
created

FactoryTest   A

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
namespace Symplify\NetteAdapterForSymfonyBundles\Tests\Container;
4
5
use Doctrine\ORM\EntityManager;
6
use PHPUnit\Framework\TestCase;
7
use Symplify\NetteAdapterForSymfonyBundles\Tests\ContainerFactory;
8
9
final class FactoryTest extends TestCase
10
{
11
    public function testFactory()
12
    {
13
        $container = (new ContainerFactory())->createWithConfig(__DIR__.'/FactorySource/config/init.neon');
14
15
        /** @var EntityManager $entityManager */
16
        $entityManager = $container->getByType(EntityManager::class);
17
        $this->assertInstanceOf(EntityManager::class, $entityManager);
18
    }
19
}
20