public function RedirectResponseTest::testGenerateLocationHeader in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/RedirectResponseTest.php \Symfony\Component\HttpFoundation\Tests\RedirectResponseTest::testGenerateLocationHeader()
File
- vendor/
symfony/ http-foundation/ Tests/ RedirectResponseTest.php, line 44
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testGenerateLocationHeader() {
$response = new RedirectResponse('foo.bar');
$this
->assertTrue($response->headers
->has('Location'));
$this
->assertEquals('foo.bar', $response->headers
->get('Location'));
}