@@ -209,34 +209,37 @@ public function testGetParamsOverride()
209209 $ conn = DriverManager::getConnection (array (
210210 'wrapperClass ' => 'Doctrine\DBAL\Sharding\PoolingShardConnection ' ,
211211 'driver ' => 'pdo_sqlite ' ,
212- 'global ' => array ('memory ' => true ),
212+ 'global ' => array ('memory ' => true , ' host ' => ' localhost ' ),
213213 'shards ' => array (
214- array ('id ' => 1 , 'memory ' => true ),
214+ array ('id ' => 1 , 'memory ' => true , ' host ' => ' foo ' ),
215215 ),
216216 'shardChoser ' => 'Doctrine\DBAL\Sharding\ShardChoser\MultiTenantShardChoser ' ,
217217 ));
218218
219219 $ this ->assertEquals (array (
220220 'wrapperClass ' => 'Doctrine\DBAL\Sharding\PoolingShardConnection ' ,
221221 'driver ' => 'pdo_sqlite ' ,
222- 'global ' => array ('memory ' => true ),
222+ 'global ' => array ('memory ' => true , ' host ' => ' localhost ' ),
223223 'shards ' => array (
224- array ('id ' => 1 , 'memory ' => true ),
224+ array ('id ' => 1 , 'memory ' => true , ' host ' => ' foo ' ),
225225 ),
226226 'shardChoser ' => new MultiTenantShardChoser (),
227+ 'memory ' => true ,
228+ 'host ' => 'localhost ' ,
227229 ), $ conn ->getParams ());
228230
229231 $ conn ->connect (1 );
230232 $ this ->assertEquals (array (
231233 'wrapperClass ' => 'Doctrine\DBAL\Sharding\PoolingShardConnection ' ,
232234 'driver ' => 'pdo_sqlite ' ,
233- 'global ' => array ('memory ' => true ),
235+ 'global ' => array ('memory ' => true , ' host ' => ' localhost ' ),
234236 'shards ' => array (
235- array ('id ' => 1 , 'memory ' => true ),
237+ array ('id ' => 1 , 'memory ' => true , ' host ' => ' foo ' ),
236238 ),
237239 'shardChoser ' => new MultiTenantShardChoser (),
238240 'id ' => 1 ,
239241 'memory ' => true ,
242+ 'host ' => 'foo ' ,
240243 ), $ conn ->getParams ());
241244 }
242245
0 commit comments