public function testCommandCursorTimeout()
{
$database = $this->getDatabase();
$this->failMaxTimeMS();
$result = $database->command(["count" => "test", "query" => array("a" => 1), "maxTimeMS" => 100]);
$this->assertSame(['ok' => 0.0, 'errmsg' => 'operation exceeded time limit', 'code' => 50], $result);
}