Completed
Push — master ( 4e4cd8...063296 )
by Maksim
16s
created

FOSElasticaBundleTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCompilerPassesAreRegistered() 0 14 1
1
<?php
2
3
/*
4
 * This file is part of the FOSElasticaBundle package.
5
 *
6
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
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 FOS\ElasticaBundle\Tests;
13
14
use FOS\ElasticaBundle\FOSElasticaBundle;
15
16
class FOSElasticaBundleTest extends \PHPUnit_Framework_TestCase
17
{
18
    public function testCompilerPassesAreRegistered()
19
    {
20
        $container = $this
21
            ->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')
22
            ->getMock();
23
24
        $container
25
            ->expects($this->atLeastOnce())
26
            ->method('addCompilerPass')
27
            ->with($this->isInstanceOf('Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface'));
28
29
        $bundle = new FOSElasticaBundle();
30
        $bundle->build($container);
31
    }
32
}
33