Example #1
0
 public function testMethodNotAllowed()
 {
     $builder = new Ergo_Http_ResponseBuilder();
     $response = $builder->methodNotAllowed()->build();
     $this->assertEqual($response->getStatus()->getCode(), 405);
     $this->assertFalse($response->hasBody());
 }