public function testRegisterDefaultImplementations()
 {
     $container = $this->createMockDefaultAppAndDeps();
     $doctrineOrmManagerRegistryProvider = new DoctrineOrmManagerRegistryProvider();
     $doctrineOrmManagerRegistryProvider->register($container);
     $this->assertEquals('default', $container['doctrine']->getDefaultConnectionName());
     $this->assertInstanceOf('Doctrine\\DBAL\\Connection', $container['doctrine']->getConnection());
     $this->assertCount(1, $container['doctrine']->getConnections());
     $this->assertCount(1, $container['doctrine']->getConnectionNames());
     $this->assertEquals('default', $container['doctrine']->getDefaultManagerName());
     $this->assertInstanceOf('Doctrine\\ORM\\EntityManager', $container['doctrine']->getManager());
     $this->assertCount(1, $container['doctrine']->getManagers());
     $this->assertCount(1, $container['doctrine']->getManagerNames());
     $this->assertEquals($container['doctrine']->getAliasNamespace('Test'), 'Saxulum\\DoctrineOrmManagerRegistry\\Doctrine\\ManagerRegistry');
     $this->assertInstanceOf('Doctrine\\Common\\Persistence\\ObjectRepository', $container['doctrine']->getRepository('Saxulum\\DoctrineOrmManagerRegistry\\Doctrine\\ManagerRegistry'));
     $this->assertInstanceOf('Doctrine\\ORM\\EntityManager', $container['doctrine']->getManagerForClass('Saxulum\\DoctrineOrmManagerRegistry\\Doctrine\\ManagerRegistry'));
     $initialManager = $container['doctrine']->getManager();
     $container['doctrine']->resetManager();
     $resetManager = $container['doctrine']->getManager();
     $this->assertNotSame($resetManager, $initialManager);
     $this->assertSame($resetManager, $container['doctrine']->getManagers()['default']);
     $container['doctrine']->resetManager();
     $reResetManager = $container['doctrine']->getManager();
     $this->assertNotSame($reResetManager, $resetManager);
     $this->assertNotSame($reResetManager, $initialManager);
     $this->assertSame($reResetManager, $container['doctrine']->getManagers()['default']);
 }
 /**
  * {@inheritdoc}
  */
 public function register(Application $app)
 {
     $pimpleServiceProvider = new PimpleDoctrineOrmManagerRegistryProvider();
     $pimpleServiceProvider->register($app);
 }