Skip to content

Commit

Permalink
Merge pull request #77 from Lintume/fix_assert_see_in_fake_pdf_builder
Browse files Browse the repository at this point in the history
Modify break statement in FakePdfBuilder.
  • Loading branch information
freekmurze authored Feb 6, 2024
2 parents 91fb895 + e193c88 commit e9fcde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FakePdfBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function assertSee(string|array $text): void
foreach ($this->savedPdfs as $savedPdf) {
foreach ($text as $singleText) {
if (! str_contains($savedPdf['pdf']->html, $singleText)) {
break 2; // jump out of if branch and the inner foreach loop
break; // jump out of the inner foreach loop
}
}

Expand Down

0 comments on commit e9fcde7

Please sign in to comment.