mirror of
https://github.com/pestphp/pest.git
synced 2026-07-22 17:40:03 +02:00
finishing the code
This commit is contained in:
+1
-1
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user