methodNotAllowed() публичный Метод

Configures response as a '405 Method Not Allowed'
public methodNotAllowed ( )
Пример #1
0
 public function testMethodNotAllowed()
 {
     $builder = new Http\ResponseBuilder();
     $response = $builder->methodNotAllowed()->build();
     $this->assertEquals($response->getStatus()->getCode(), 405);
     $this->assertFalse($response->hasBody());
 }