Skip to content

Commit

Permalink
[5.6] allow asserting an integer with assertSee() (#23892)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadoWalker89 authored and taylorotwell committed Apr 17, 2018
1 parent 45edacf commit 00e92dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 00e92dd

Please sign in to comment.