finishing the code

This commit is contained in:
AJ Meireles
2023-09-05 20:36:18 -03:00
parent cc6c5bf199
commit 3927177b23
8 changed files with 38 additions and 9 deletions

View File

@ -239,7 +239,7 @@ final class Expectation
$index = isset($callbacks[$index + 1]) ? $index + 1 : 0;
}
if (count($callbacks) > $valuesCount) {
if ($valuesCount < count($callbacks)) {
throw new OutOfRangeException('Sequence expectations are more than the iterable items.');
}