public function testShouldCountDocuments()
{
// Arrange
$collection = m::mock(Collection::class);
$cursor = $this->getCursor(null, $collection);
// Act
$collection->shouldReceive('count')->once()->with([])->andReturn(5);
// Assert
$this->assertEquals(5, $cursor->count(5));
}