public function testCreate() { $response = RedirectResponse::create('foo', 301); $this ->assertInstanceOf('Symfony\\Component\\HttpFoundation\\RedirectResponse', $response); $this ->assertEquals(301, $response ->getStatusCode()); }