public function testCompilerPassesAreRegistered()
 {
     $container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerBuilder');
     $container->expects($this->atLeastOnce())->method('addCompilerPass')->with($this->isInstanceOf('Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface'));
     $bundle = new FOSElasticaBundle();
     $bundle->build($container);
 }
 public function testCompilerPassesAreRegistered()
 {
     $passes = array(array('FOS\\ElasticaBundle\\DependencyInjection\\Compiler\\RegisterProvidersPass', PassConfig::TYPE_BEFORE_REMOVING), array('FOS\\ElasticaBundle\\DependencyInjection\\Compiler\\TransformerPass'));
     $container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerBuilder');
     $container->expects($this->at(0))->method('addCompilerPass')->with($this->isInstanceOf($passes[0][0]), $passes[0][1]);
     $container->expects($this->at(1))->method('addCompilerPass')->with($this->isInstanceOf($passes[1][0]));
     $bundle = new FOSElasticaBundle();
     $bundle->build($container);
 }