public function RedirectResponseTest::testCreate 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::testCreate()
File
- vendor/
symfony/ http-foundation/ Tests/ RedirectResponseTest.php, line 76
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testCreate() {
$response = RedirectResponse::create('foo', 301);
$this
->assertInstanceOf('Symfony\\Component\\HttpFoundation\\RedirectResponse', $response);
$this
->assertEquals(301, $response
->getStatusCode());
}