From f075f67526bf0650a04fd2d3dd60ebbd74d43675 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Tue, 6 Dec 2022 21:25:16 +0100 Subject: [PATCH] Add assertHasAllContent --- src/Document.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Document.php b/src/Document.php index ed160a3..1e66fbc 100644 --- a/src/Document.php +++ b/src/Document.php @@ -35,6 +35,16 @@ abstract class Document ); } + /** + * @param array $content + */ + public function assertHasAllContent(array $content): void + { + foreach ($content as $test) { + $this->assertHasContent($test); + } + } + public function hasContent(string $content): bool { return str_contains($this->renderBody(), $content);