Пример #1
0
 public function acceptWithQ()
 {
     $fixture = new RestRequest('/issues');
     $fixture->addAccept('text/xml', '0.5');
     $fixture->addAccept('text/json', '0.8');
     $this->assertEquals(['Accept' => 'text/xml;q=0.5, text/json;q=0.8'], $fixture->getHeaders());
 }