@@ -139,8 +139,9 @@ public function testGetSelectsCollectionAndInheritsOptions()
139139 $ collection = $ database ->{$ this ->getCollectionName ()};
140140 $ debug = $ collection ->__debugInfo ();
141141
142- $ this ->assertSame ($ this ->getCollectionName () , $ debug ['collectionName ' ]);
142+ $ this ->assertSame ($ this ->manager , $ debug ['manager ' ]);
143143 $ this ->assertSame ($ this ->getDatabaseName (), $ debug ['databaseName ' ]);
144+ $ this ->assertSame ($ this ->getCollectionName (), $ debug ['collectionName ' ]);
144145 $ this ->assertInstanceOf ('MongoDB\Driver\WriteConcern ' , $ debug ['writeConcern ' ]);
145146 $ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
146147 }
@@ -158,6 +159,9 @@ public function testSelectCollectionInheritsOptions()
158159 $ collection = $ database ->selectCollection ($ this ->getCollectionName ());
159160 $ debug = $ collection ->__debugInfo ();
160161
162+ $ this ->assertSame ($ this ->manager , $ debug ['manager ' ]);
163+ $ this ->assertSame ($ this ->getDatabaseName (), $ debug ['databaseName ' ]);
164+ $ this ->assertSame ($ this ->getCollectionName (), $ debug ['collectionName ' ]);
161165 $ this ->assertInstanceOf ('MongoDB\Driver\ReadConcern ' , $ debug ['readConcern ' ]);
162166 $ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
163167 $ this ->assertInstanceOf ('MongoDB\Driver\ReadPreference ' , $ debug ['readPreference ' ]);
@@ -252,6 +256,8 @@ public function testWithOptionsInheritsOptions()
252256 $ clone = $ database ->withOptions ();
253257 $ debug = $ clone ->__debugInfo ();
254258
259+ $ this ->assertSame ($ this ->manager , $ debug ['manager ' ]);
260+ $ this ->assertSame ($ this ->getDatabaseName (), $ debug ['databaseName ' ]);
255261 $ this ->assertInstanceOf ('MongoDB\Driver\ReadConcern ' , $ debug ['readConcern ' ]);
256262 $ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
257263 $ this ->assertInstanceOf ('MongoDB\Driver\ReadPreference ' , $ debug ['readPreference ' ]);
0 commit comments