6
6
use MongoDB \Collection ;
7
7
use MongoDB \Database ;
8
8
use MongoDB \Driver \BulkWrite ;
9
- use MongoDB \Driver \Cursor ;
9
+ use MongoDB \Driver \CursorInterface ;
10
10
use MongoDB \Driver \ReadConcern ;
11
11
use MongoDB \Driver \ReadPreference ;
12
12
use MongoDB \Driver \WriteConcern ;
@@ -79,7 +79,7 @@ public function testCommand(): void
79
79
80
80
$ cursor = $ this ->database ->command ($ command , $ options );
81
81
82
- $ this ->assertInstanceOf (Cursor ::class, $ cursor );
82
+ $ this ->assertInstanceOf (CursorInterface ::class, $ cursor );
83
83
$ commandResult = current ($ cursor ->toArray ());
84
84
85
85
$ this ->assertCommandSucceeded ($ commandResult );
@@ -99,7 +99,7 @@ public function testCommandDoesNotInheritReadPreference(): void
99
99
100
100
$ cursor = $ this ->database ->command ($ command );
101
101
102
- $ this ->assertInstanceOf (Cursor ::class, $ cursor );
102
+ $ this ->assertInstanceOf (CursorInterface ::class, $ cursor );
103
103
$ this ->assertTrue ($ cursor ->getServer ()->isPrimary ());
104
104
}
105
105
@@ -113,7 +113,7 @@ public function testCommandAppliesTypeMapToCursor(): void
113
113
114
114
$ cursor = $ this ->database ->command ($ command , $ options );
115
115
116
- $ this ->assertInstanceOf (Cursor ::class, $ cursor );
116
+ $ this ->assertInstanceOf (CursorInterface ::class, $ cursor );
117
117
$ commandResult = current ($ cursor ->toArray ());
118
118
119
119
$ this ->assertCommandSucceeded ($ commandResult );
0 commit comments