public function testInfo()
 {
     $mongoCommandCursor = $this->getMockMongoCommandCursor();
     $mongoCommandCursor->expects($this->once())->method('info')->will($this->returnValue(['info']));
     $commandCursor = new CommandCursor($mongoCommandCursor);
     $this->assertEquals(['info'], $commandCursor->info());
 }
 /**
  * Wrapper method for MongoCommandCursor::info().
  *
  * @see http://php.net/manual/en/mongocommandcursor.info.php
  * @return array
  */
 public function info()
 {
     return $this->commandCursor->info();
 }