Skip to content

Commit 691e260

Browse files
committed
Remove use statement and testAppend
1 parent 78e4db1 commit 691e260

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

tests/Model/TypeMapArrayIteratorTest.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace MongoDB\Tests\Model;
44

5-
use MongoDB\Exception\BadMethodCallException;
65
use MongoDB\Model\TypeMapArrayIterator;
76
use 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

0 commit comments

Comments
 (0)