public function shouldRejectWithLengthExceptionWithInputArrayContainingNotEnoughItems()
{
$mock = $this->createCallableMock();
$mock->expects($this->once())->method('__invoke')->with($this->callback(function ($exception) {
return $exception instanceof LengthException && 'Input array must contain at least 4 items but contains only 3 items.' === $exception->getMessage();
}));
some([1, 2, 3], 4)->then($this->expectCallableNever(), $mock);
}