FormServiceProviderTest::testRegister()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 5
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Nip\Form\Tests;
4
5
use Nip\Filesystem\FilesystemManager;
6
use Nip\Form\FormServiceProvider;
7
use Symfony\Component\Form\FormFactoryInterface;
8
9
/**
10
 * Class FormServiceProviderTest
11
 * @package Nip\Form\Tests
12
 */
13
class FormServiceProviderTest extends AbstractTest
14
{
15
    public function testRegister()
16
    {
17
        $provider = new FormServiceProvider();
18
        $provider->initContainer();
19
        $provider->register();
20
21
        $factory = $provider->getContainer()->get(FormServiceProvider::FORM_FACTORY);
22
        self::assertInstanceOf(FormFactoryInterface::class, $factory);
23
    }
24
}
25