getContainer() protected méthode

protected getContainer ( )
 protected function getContainer()
 {
     $container = parent::getContainer();
     $registry = $this->getMock('Symfony\\Bridge\\Doctrine\\RegistryInterface');
     $registry->expects($this->any())->method('getAliasNamespace')->will($this->returnValue('Foo\\FooBundle\\Entity'));
     $container->set('doctrine', $registry);
     return $container;
 }
 /**
  * @return \Symfony\Component\DependencyInjection\Container
  */
 protected function getContainer()
 {
     $container = parent::getContainer();
     $container->set('doctrine.odm.mongodb.document_manager', $this->dm->reveal());
     return $container;
 }
 protected function getContainer()
 {
     $container = parent::getContainer();
     $container->set('doctrine', $this->getDoctrine());
     return $container;
 }
 /**
  * @return \Symfony\Component\DependencyInjection\Container
  */
 protected function getContainer()
 {
     $container = parent::getContainer();
     $dm = $this->getMockBuilder('Doctrine\\ODM\\MongoDB\\DocumentManager')->disableOriginalConstructor()->getMock();
     $dm->expects($this->any())->method('getConfiguration')->will($this->returnValue(new \Doctrine\ODM\MongoDB\Configuration()));
     $container->set('doctrine.odm.mongodb.document_manager', $dm);
     return $container;
 }