diff --git a/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php b/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php index d3af81979a70..8c0cb189aacf 100644 --- a/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php +++ b/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php @@ -43,6 +43,10 @@ public function matches($values) : bool $position = 0; foreach ($values as $value) { + if (empty($value)) { + continue; + } + $valuePosition = mb_strpos($this->content, $value, $position); if ($valuePosition === false || $valuePosition < $position) {