diff --git a/RedirectResponse.php b/RedirectResponse.php index 4e3cb4f77..a19efba3e 100644 --- a/RedirectResponse.php +++ b/RedirectResponse.php @@ -93,7 +93,7 @@ public function setTargetUrl($url) - + Redirecting to %1$s diff --git a/Tests/RedirectResponseTest.php b/Tests/RedirectResponseTest.php index e1ff3bf2b..2bbf5aa1a 100644 --- a/Tests/RedirectResponseTest.php +++ b/Tests/RedirectResponseTest.php @@ -20,10 +20,7 @@ public function testGenerateMetaRedirect() { $response = new RedirectResponse('foo.bar'); - $this->assertEquals(1, preg_match( - '##', - preg_replace(['/\s+/', '/\'/'], [' ', '"'], $response->getContent()) - )); + $this->assertRegExp('##', preg_replace('/\s+/', ' ', $response->getContent())); } public function testRedirectResponseConstructorNullUrl()