Ejemplo n.º 1
0
 public function setPayloadCalledTwice()
 {
     $fixture = new RestRequest();
     $fixture->setPayload(['title' => 'New issue'], new RestXmlSerializer());
     $fixture->setPayload(['title' => 'New issue'], new RestJsonSerializer());
     $this->assertEquals('application/json; charset=utf-8', $fixture->getHeader('Content-Type'));
 }