public function test_is_redirect() { $response = new HttpResponse(); $this->assertFalse($response->isRedirect()); $response->setStatusCode(HttpStatusCode::PERMANENTLY_REDIRECT); $this->assertTrue($response->isRedirect()); }