public function testShouldImplementValidMethodFromIterator()
{
// Arrange
$collection = m::mock(Collection::class);
$driverCursor = m::mock(IteratorIterator::class);
$cursor = $this->getCursor(null, $collection, 'find', [[]], $driverCursor);
// Act
$driverCursor->shouldReceive('valid')->andReturn(true);
// Assert
$this->assertTrue($cursor->valid());
}