public function isForbidden() { return 403 === $this->statusCode; }
public function testIsForbidden() { $response = new Response('', 403); $this->assertTrue($response->isForbidden()); $response = new Response('', 200); $this->assertFalse($response->isForbidden()); }