getCode() public method

public getCode ( ) : integer
return integer
Exemplo n.º 1
0
 public function testBasicUsage()
 {
     $status = new Http\Status(200);
     $this->assertEquals($status->getCode(), 200);
     $this->assertEquals($status->getMessage(), 'OK');
     $this->assertEquals($status->getStatusLine(), "HTTP/1.1 200 OK\r\n");
 }