public function testSpecifyMaxTimeMSOnCursor()
{
$cursor = $this->getMockCursor();
$collection = $this->getMockCollection();
$collection->expects($this->once())->method('find')->with($this->equalTo(['foo' => 'bar']))->will($this->returnValue($cursor));
$cursor->expects($this->once())->method('maxTimeMS')->with($this->equalTo(30000))->will($this->returnValue($cursor));
$queryArray = ['type' => Query::TYPE_FIND, 'query' => ['foo' => 'bar'], 'maxTimeMS' => 30000];
$query = new Query($collection, $queryArray, []);
$this->assertSame($cursor, $query->execute());
}