Example #1
0
 public function testGetConnectionNames()
 {
     $container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
     $registry = new Registry($container, array('default' => 'doctrine.dbal.default_connection'), array(), 'default', 'default');
     $this->assertEquals(array('default' => 'doctrine.dbal.default_connection'), $registry->getConnectionNames());
 }
Example #2
0
 /**
  * @return array
  */
 public function getConnectionNames()
 {
     $connections = $this->doctrine->getConnectionNames();
     return $connections;
 }