function it_is_countable(CursorInterface $cursor)
 {
     $this->shouldImplement('\\Countable');
     $cursor->count()->shouldBeCalled()->willReturn(13);
     // page size is 10 : so 1 page of 10 elements and a second of 3
     $this->shouldHaveCount(2);
 }
 function it_returns_the_number_of_versions_to_be_purged($versionRepository, CursorInterface $cursor)
 {
     $cursor->count()->willReturn(1);
     $versionRepository->findPotentiallyPurgeableBy(Argument::type('array'))->willReturn($cursor);
     $this->getVersionsToPurgeCount([])->shouldReturn(1);
 }