getCode() public method

public getCode ( ) : integer
return integer
Example #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");
 }