public function methodNotAllowed() { return $this->setStatusCode(405); }
public function testMethodNotAllowed() { $builder = new Http\ResponseBuilder(); $response = $builder->methodNotAllowed()->build(); $this->assertEquals($response->getStatus()->getCode(), 405); $this->assertFalse($response->hasBody()); }