diff --git a/src/Illuminate/Foundation/Testing/TestResponse.php b/src/Illuminate/Foundation/Testing/TestResponse.php index 51cf2e21399d..b3f88c4070c3 100644 --- a/src/Illuminate/Foundation/Testing/TestResponse.php +++ b/src/Illuminate/Foundation/Testing/TestResponse.php @@ -281,7 +281,7 @@ protected function getCookie($cookieName) */ public function assertSee($value) { - PHPUnit::assertContains($value, $this->getContent()); + PHPUnit::assertContains((string) $value, $this->getContent()); return $this; } @@ -307,7 +307,7 @@ public function assertSeeInOrder(array $values) */ public function assertSeeText($value) { - PHPUnit::assertContains($value, strip_tags($this->getContent())); + PHPUnit::assertContains((string) $value, strip_tags($this->getContent())); return $this; } @@ -333,7 +333,7 @@ public function assertSeeTextInOrder(array $values) */ public function assertDontSee($value) { - PHPUnit::assertNotContains($value, $this->getContent()); + PHPUnit::assertNotContains((string) $value, $this->getContent()); return $this; } @@ -346,7 +346,7 @@ public function assertDontSee($value) */ public function assertDontSeeText($value) { - PHPUnit::assertNotContains($value, strip_tags($this->getContent())); + PHPUnit::assertNotContains((string) $value, strip_tags($this->getContent())); return $this; }