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

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