@@ -111,7 +111,7 @@ public function testCommandAppliesTypeMapToCursor()
111111 $ commandResult = current ($ cursor ->toArray ());
112112
113113 $ this ->assertCommandSucceeded ($ commandResult );
114- $ this ->assertInternalType ( ' array ' , $ commandResult );
114+ $ this ->assertIsArray ( $ commandResult );
115115 $ this ->assertArrayHasKey ('ismaster ' , $ commandResult );
116116 $ this ->assertTrue ($ commandResult ['ismaster ' ]);
117117 }
@@ -207,7 +207,7 @@ public function testSelectCollectionInheritsOptions()
207207 $ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
208208 $ this ->assertInstanceOf (\MongoDB \Driver \ReadPreference::class, $ debug ['readPreference ' ]);
209209 $ this ->assertSame (ReadPreference::RP_SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
210- $ this ->assertInternalType ( ' array ' , $ debug ['typeMap ' ]);
210+ $ this ->assertIsArray ( $ debug ['typeMap ' ]);
211211 $ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
212212 $ this ->assertInstanceOf (\MongoDB \Driver \WriteConcern::class, $ debug ['writeConcern ' ]);
213213 $ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
@@ -229,7 +229,7 @@ public function testSelectCollectionPassesOptions()
229229 $ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
230230 $ this ->assertInstanceOf (\MongoDB \Driver \ReadPreference::class, $ debug ['readPreference ' ]);
231231 $ this ->assertSame (ReadPreference::RP_SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
232- $ this ->assertInternalType ( ' array ' , $ debug ['typeMap ' ]);
232+ $ this ->assertIsArray ( $ debug ['typeMap ' ]);
233233 $ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
234234 $ this ->assertInstanceOf (\MongoDB \Driver \WriteConcern::class, $ debug ['writeConcern ' ]);
235235 $ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
@@ -303,7 +303,7 @@ public function testWithOptionsInheritsOptions()
303303 $ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
304304 $ this ->assertInstanceOf (\MongoDB \Driver \ReadPreference::class, $ debug ['readPreference ' ]);
305305 $ this ->assertSame (ReadPreference::RP_SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
306- $ this ->assertInternalType ( ' array ' , $ debug ['typeMap ' ]);
306+ $ this ->assertIsArray ( $ debug ['typeMap ' ]);
307307 $ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
308308 $ this ->assertInstanceOf (\MongoDB \Driver \WriteConcern::class, $ debug ['writeConcern ' ]);
309309 $ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
@@ -325,7 +325,7 @@ public function testWithOptionsPassesOptions()
325325 $ this ->assertSame (ReadConcern::LOCAL , $ debug ['readConcern ' ]->getLevel ());
326326 $ this ->assertInstanceOf (\MongoDB \Driver \ReadPreference::class, $ debug ['readPreference ' ]);
327327 $ this ->assertSame (ReadPreference::RP_SECONDARY_PREFERRED , $ debug ['readPreference ' ]->getMode ());
328- $ this ->assertInternalType ( ' array ' , $ debug ['typeMap ' ]);
328+ $ this ->assertIsArray ( $ debug ['typeMap ' ]);
329329 $ this ->assertSame (['root ' => 'array ' ], $ debug ['typeMap ' ]);
330330 $ this ->assertInstanceOf (\MongoDB \Driver \WriteConcern::class, $ debug ['writeConcern ' ]);
331331 $ this ->assertSame (WriteConcern::MAJORITY , $ debug ['writeConcern ' ]->getW ());
0 commit comments