From 596c98b2edbed5a6e9ea30debc821c0df1e5e3f0 Mon Sep 17 00:00:00 2001 From: Harish Kumar <39181262+hkp22@users.noreply.github.com> Date: Sun, 9 Feb 2020 02:50:35 +0530 Subject: [PATCH] Removed phpunit deprecated methods in PdfFaker (#377) --- src/PdfFaker.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PdfFaker.php b/src/PdfFaker.php index eb6113c..2b57266 100644 --- a/src/PdfFaker.php +++ b/src/PdfFaker.php @@ -114,7 +114,7 @@ public function assertViewMissing($key) */ public function assertSee($value) { - PHPUnit::assertContains($value, $this->html); + PHPUnit::assertStringContainsString($value, $this->html); return $this; } @@ -127,7 +127,7 @@ public function assertSee($value) */ public function assertSeeText($value) { - PHPUnit::assertContains($value, strip_tags($this->html)); + PHPUnit::assertStringContainsString($value, strip_tags($this->html)); return $this; } @@ -140,7 +140,7 @@ public function assertSeeText($value) */ public function assertDontSee($value) { - PHPUnit::assertNotContains($value, $this->html); + PHPUnit::assertStringNotContainsString($value, $this->html); return $this; } @@ -153,7 +153,7 @@ public function assertDontSee($value) */ public function assertDontSeeText($value) { - PHPUnit::assertNotContains($value, strip_tags($this->html)); + PHPUnit::assertStringNotContainsString($value, strip_tags($this->html)); return $this; }