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

testCompilerPassesAreRegistered()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 0
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