Example #1
0
 /**
  * @dataProvider encodingProvider
  */
 public function testPrepareHeadersWithJsonHeader($encoding, $header)
 {
     $this->_object->setEncoding($encoding);
     $this->assertInstanceOf($this->_instanceOf, $this->_object->prepareHeaders());
     $headers = $this->_object->getHeaders();
     $this->assertEquals($header, "Content-Type: " . $headers['Content-Type']);
 }