File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 22
33namespace MongoDB \Tests \Model ;
44
5- use MongoDB \Exception \BadMethodCallException ;
65use MongoDB \Model \TypeMapArrayIterator ;
76use MongoDB \Tests \TestCase ;
87
@@ -58,35 +57,6 @@ public function testOffsetGetAppliesTypeMap()
5857 $ this ->assertEquals ($ expectedDocument , $ iterator ->offsetGet (0 ));
5958 }
6059
61- /**
62- * @expectedException MongoDB\Exception\BadMethodCallException
63- * @expectedExceptionMessage MongoDB\Model\TypeMapArrayIterator is immutable
64- */
65- public function testAppendThrowsException ()
66- {
67- $ document = [
68- 'array ' => [1 , 2 , 3 ],
69- 'object ' => ['foo ' => 'bar ' ],
70- ];
71-
72- $ typeMap = [
73- 'root ' => 'object ' ,
74- 'document ' => 'object ' ,
75- 'array ' => 'array ' ,
76- ];
77-
78- $ iterator = new TypeMapArrayIterator ([$ document ], $ typeMap );
79-
80- $ expectedDocument = (object ) [
81- 'array ' => [1 , 2 , 3 ],
82- 'object ' => (object ) ['foo ' => 'bar ' ],
83- ];
84-
85- $ iterator ->rewind ();
86-
87- $ iterator ->asort ();
88- }
89-
9060 /**
9161 * @dataProvider provideMutateMethods
9262 * @expectedException MongoDB\Exception\BadMethodCallException
You can’t perform that action at this time.
0 commit comments