Beispiel #1
0
 public function testBuild()
 {
     $container = $this->getMock('\\Symfony\\Component\\DependencyInjection\\ContainerBuilder');
     $container->expects($this->once())->method('addCompilerPass')->with($this->isInstanceOf('\\Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface'));
     $bundle = new FOSRestBundle();
     $bundle->build($container);
 }
 public function testBuild()
 {
     $container = $this->getMockBuilder(ContainerBuilder::class)->setMethods(['addCompilerPass'])->getMock();
     $container->expects($this->exactly(5))->method('addCompilerPass')->with($this->isInstanceOf(CompilerPassInterface::class));
     $bundle = new FOSRestBundle();
     $bundle->build($container);
 }