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