@@ -64,10 +64,10 @@ public function testInsertOneDocumentArgumentMissing()
6464
6565 /**
6666 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
67- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["insertOne"\]\[0\] to have type "[\w ]+ " but found "[\w ]+"/
68- * @dataProvider provideInvalidDocumentArguments
67+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["insertOne"\]\[0\] to have type "array or object " but found "[\w ]+"/
68+ * @dataProvider provideInvalidDocumentValues
6969 */
70- public function testInsertOneDocumentArgumentType ($ document )
70+ public function testInsertOneDocumentArgumentTypeCheck ($ document )
7171 {
7272 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
7373 array (BulkWrite::INSERT_ONE => array ($ document )),
@@ -87,10 +87,10 @@ public function testDeleteManyFilterArgumentMissing()
8787
8888 /**
8989 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
90- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["deleteMany"\]\[0\] to have type "[\w ]+ " but found "[\w ]+"/
91- * @dataProvider provideInvalidDocumentArguments
90+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["deleteMany"\]\[0\] to have type "array or object " but found "[\w ]+"/
91+ * @dataProvider provideInvalidDocumentValues
9292 */
93- public function testDeleteManyFilterArgumentType ($ document )
93+ public function testDeleteManyFilterArgumentTypeCheck ($ document )
9494 {
9595 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
9696 array (BulkWrite::DELETE_MANY => array ($ document )),
@@ -110,10 +110,10 @@ public function testDeleteOneFilterArgumentMissing()
110110
111111 /**
112112 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
113- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["deleteOne"\]\[0\] to have type "[\w ]+ " but found "[\w ]+"/
114- * @dataProvider provideInvalidDocumentArguments
113+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["deleteOne"\]\[0\] to have type "array or object " but found "[\w ]+"/
114+ * @dataProvider provideInvalidDocumentValues
115115 */
116- public function testDeleteOneFilterArgumentType ($ document )
116+ public function testDeleteOneFilterArgumentTypeCheck ($ document )
117117 {
118118 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
119119 array (BulkWrite::DELETE_ONE => array ($ document )),
@@ -133,10 +133,10 @@ public function testReplaceOneFilterArgumentMissing()
133133
134134 /**
135135 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
136- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["replaceOne"\]\[0\] to have type "[\w ]+ " but found "[\w ]+"/
137- * @dataProvider provideInvalidDocumentArguments
136+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["replaceOne"\]\[0\] to have type "array or object " but found "[\w ]+"/
137+ * @dataProvider provideInvalidDocumentValues
138138 */
139- public function testReplaceOneFilterArgumentType ($ filter )
139+ public function testReplaceOneFilterArgumentTypeCheck ($ filter )
140140 {
141141 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
142142 array (BulkWrite::REPLACE_ONE => array ($ filter , array ('y ' => 1 ))),
@@ -156,10 +156,10 @@ public function testReplaceOneReplacementArgumentMissing()
156156
157157 /**
158158 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
159- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["replaceOne"\]\[1\] to have type "[\w ]+ " but found "[\w ]+"/
160- * @dataProvider provideInvalidDocumentArguments
159+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["replaceOne"\]\[1\] to have type "array or object " but found "[\w ]+"/
160+ * @dataProvider provideInvalidDocumentValues
161161 */
162- public function testReplaceOneReplacementArgumentType ($ replacement )
162+ public function testReplaceOneReplacementArgumentTypeCheck ($ replacement )
163163 {
164164 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
165165 array (BulkWrite::REPLACE_ONE => array (array ('x ' => 1 ), $ replacement )),
@@ -179,10 +179,10 @@ public function testReplaceOneReplacementArgumentRequiresNoOperators()
179179
180180 /**
181181 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
182- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["replaceOne"\]\[2\]\["upsert"\] to have type "[\w ]+ " but found "[\w ]+"/
183- * @dataProvider provideInvalidBooleanArguments
182+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["replaceOne"\]\[2\]\["upsert"\] to have type "boolean " but found "[\w ]+"/
183+ * @dataProvider provideInvalidBooleanValues
184184 */
185- public function testReplaceOneUpsertOptionType ($ upsert )
185+ public function testReplaceOneUpsertOptionTypeCheck ($ upsert )
186186 {
187187 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
188188 array (BulkWrite::REPLACE_ONE => array (array ('x ' => 1 ), array ('y ' => 1 ), array ('upsert ' => $ upsert ))),
@@ -202,10 +202,10 @@ public function testUpdateManyFilterArgumentMissing()
202202
203203 /**
204204 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
205- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateMany"\]\[0\] to have type "[\w ]+ " but found "[\w ]+"/
206- * @dataProvider provideInvalidDocumentArguments
205+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateMany"\]\[0\] to have type "array or object " but found "[\w ]+"/
206+ * @dataProvider provideInvalidDocumentValues
207207 */
208- public function testUpdateManyFilterArgumentType ($ filter )
208+ public function testUpdateManyFilterArgumentTypeCheck ($ filter )
209209 {
210210 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
211211 array (BulkWrite::UPDATE_MANY => array ($ filter , array ('$set ' => array ('x ' => 1 )))),
@@ -225,10 +225,10 @@ public function testUpdateManyUpdateArgumentMissing()
225225
226226 /**
227227 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
228- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateMany"\]\[1\] to have type "[\w ]+ " but found "[\w ]+"/
229- * @dataProvider provideInvalidDocumentArguments
228+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateMany"\]\[1\] to have type "array or object " but found "[\w ]+"/
229+ * @dataProvider provideInvalidDocumentValues
230230 */
231- public function testUpdateManyUpdateArgumentType ($ update )
231+ public function testUpdateManyUpdateArgumentTypeCheck ($ update )
232232 {
233233 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
234234 array (BulkWrite::UPDATE_MANY => array (array ('x ' => 1 ), $ update )),
@@ -248,10 +248,10 @@ public function testUpdateManyUpdateArgumentRequiresOperators()
248248
249249 /**
250250 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
251- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateMany"\]\[2\]\["upsert"\] to have type "[\w ]+ " but found "[\w ]+"/
252- * @dataProvider provideInvalidBooleanArguments
251+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateMany"\]\[2\]\["upsert"\] to have type "boolean " but found "[\w ]+"/
252+ * @dataProvider provideInvalidBooleanValues
253253 */
254- public function testUpdateManyUpsertOptionType ($ upsert )
254+ public function testUpdateManyUpsertOptionTypeCheck ($ upsert )
255255 {
256256 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
257257 array (BulkWrite::UPDATE_MANY => array (array ('x ' => 1 ), array ('$set ' => array ('x ' => 1 )), array ('upsert ' => $ upsert ))),
@@ -271,10 +271,10 @@ public function testUpdateOneFilterArgumentMissing()
271271
272272 /**
273273 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
274- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateOne"\]\[0\] to have type "[\w ]+ " but found "[\w ]+"/
275- * @dataProvider provideInvalidDocumentArguments
274+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateOne"\]\[0\] to have type "array or object " but found "[\w ]+"/
275+ * @dataProvider provideInvalidDocumentValues
276276 */
277- public function testUpdateOneFilterArgumentType ($ filter )
277+ public function testUpdateOneFilterArgumentTypeCheck ($ filter )
278278 {
279279 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
280280 array (BulkWrite::UPDATE_ONE => array ($ filter , array ('$set ' => array ('x ' => 1 )))),
@@ -294,10 +294,10 @@ public function testUpdateOneUpdateArgumentMissing()
294294
295295 /**
296296 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
297- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateOne"\]\[1\] to have type "[\w ]+ " but found "[\w ]+"/
298- * @dataProvider provideInvalidDocumentArguments
297+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateOne"\]\[1\] to have type "array or object " but found "[\w ]+"/
298+ * @dataProvider provideInvalidDocumentValues
299299 */
300- public function testUpdateOneUpdateArgumentType ($ update )
300+ public function testUpdateOneUpdateArgumentTypeCheck ($ update )
301301 {
302302 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
303303 array (BulkWrite::UPDATE_ONE => array (array ('x ' => 1 ), $ update )),
@@ -317,10 +317,10 @@ public function testUpdateOneUpdateArgumentRequiresOperators()
317317
318318 /**
319319 * @expectedException MongoDB\Exception\InvalidArgumentTypeException
320- * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateOne"\]\[2\]\["upsert"\] to have type "[\w ]+ " but found "[\w ]+"/
321- * @dataProvider provideInvalidBooleanArguments
320+ * @expectedExceptionMessageRegExp /Expected \$operations\[0\]\["updateOne"\]\[2\]\["upsert"\] to have type "boolean " but found "[\w ]+"/
321+ * @dataProvider provideInvalidBooleanValues
322322 */
323- public function testUpdateOneUpsertOptionType ($ upsert )
323+ public function testUpdateOneUpsertOptionTypeCheck ($ upsert )
324324 {
325325 new BulkWrite ($ this ->getDatabaseName (), $ this ->getCollectionName (), array (
326326 array (BulkWrite::UPDATE_ONE => array (array ('x ' => 1 ), array ('$set ' => array ('x ' => 1 )), array ('upsert ' => $ upsert ))),
0 commit comments