@@ -134,49 +134,4 @@ public function provideMapReduceOutValues()
134
134
[ ['replace ' => 'collectionName ' ], false ],
135
135
];
136
136
}
137
-
138
- /**
139
- * @dataProvider provideReadConcernsAndDocuments
140
- */
141
- public function testReadConcernAsDocument (ReadConcern $ readConcern , $ expectedDocument )
142
- {
143
- $ this ->assertEquals ($ expectedDocument , \MongoDB \read_concern_as_document ($ readConcern ));
144
- }
145
-
146
- public function provideReadConcernsAndDocuments ()
147
- {
148
- return [
149
- [ new ReadConcern , (object ) [] ],
150
- [ new ReadConcern (ReadConcern::LOCAL ), (object ) ['level ' => ReadConcern::LOCAL ] ],
151
- [ new ReadConcern (ReadConcern::MAJORITY ), (object ) ['level ' => ReadConcern::MAJORITY ] ],
152
- ];
153
- }
154
-
155
- /**
156
- * @dataProvider provideWriteConcernsAndDocuments
157
- */
158
- public function testWriteConcernAsDocument (WriteConcern $ writeConcern , $ expectedDocument )
159
- {
160
- $ this ->assertEquals ($ expectedDocument , \MongoDB \write_concern_as_document ($ writeConcern ));
161
- }
162
-
163
- public function provideWriteConcernsAndDocuments ()
164
- {
165
- return [
166
- [ new WriteConcern (-3 ), (object ) ['w ' => 'majority ' ] ], // MONGOC_WRITE_CONCERN_W_MAJORITY
167
- [ new WriteConcern (-2 ), (object ) [] ], // MONGOC_WRITE_CONCERN_W_DEFAULT
168
- [ new WriteConcern (-1 ), (object ) ['w ' => -1 ] ],
169
- [ new WriteConcern (0 ), (object ) ['w ' => 0 ] ],
170
- [ new WriteConcern (1 ), (object ) ['w ' => 1 ] ],
171
- [ new WriteConcern ('majority ' ), (object ) ['w ' => 'majority ' ] ],
172
- [ new WriteConcern ('tag ' ), (object ) ['w ' => 'tag ' ] ],
173
- [ new WriteConcern (1 , 0 ), (object ) ['w ' => 1 ] ],
174
- [ new WriteConcern (1 , 0 , false ), (object ) ['w ' => 1 , 'j ' => false ] ],
175
- [ new WriteConcern (1 , 1000 ), (object ) ['w ' => 1 , 'wtimeout ' => 1000 ] ],
176
- [ new WriteConcern (1 , 1000 , true ), (object ) ['w ' => 1 , 'wtimeout ' => 1000 , 'j ' => true ] ],
177
- [ new WriteConcern (-2 , 0 , true ), (object ) ['j ' => true ] ],
178
- // Note: wtimeout is only applicable applies for w > 1
179
- [ new WriteConcern (-2 , 1000 ), (object ) ['wtimeout ' => 1000 ] ],
180
- ];
181
- }
182
137
}
0 commit comments