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