Ejemplo n.º 1
0
 public function testHeader()
 {
     $headerName = "HEADERNAME";
     $value = 'THISISTHEVALUE';
     $header = new Header($headerName, $value);
     $this->assertEquals($headerName, $header->getHeader());
     $this->assertEquals($value, $header->getValue());
     $this->assertEquals("{$headerName}: {$value}\n", $header->get());
 }
 public function __construct($token)
 {
     parent::__construct("Authorization", "Bearer {$token}");
 }