Completed
Pull Request — master (#3)
by
unknown
01:48
created

IndragunawanMiddlewareBundleTest::testBuild()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the MiddlewareBundle
5
 *
6
 * (c) Indra Gunawan <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Indragunawan\MiddlewareBundle\Tests;
13
14
use Indragunawan\MiddlewareBundle\IndragunawanMiddlewareBundle;
15
use PHPUnit\Framework\TestCase;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
18
final class IndragunawanMiddlewareBundleTest extends TestCase
19
{
20
    public function testBuild()
21
    {
22
        $container = new ContainerBuilder();
23
24
        $compilerPassCount = count($container->getCompilerPassConfig()->getPasses());
25
26
        $bundle = new IndragunawanMiddlewareBundle();
27
        $bundle->build($container);
28
29
        self::assertSame($compilerPassCount + 1, count($container->getCompilerPassConfig()->getPasses()));
30
    }
31
}
32