Exemple #1
0
 /**
  * Test that getLastRawResponse returns null when not storing
  *
  */
 public function testGetLastRawResponseWhenNotStoring()
 {
     // Now, test we get a proper response after the request
     $this->_client->setUri('http://example.com/foo/bar');
     $this->_client->setAdapter('Zend\\Http\\Client\\Adapter\\Test');
     $this->_client->setConfig(array('storeresponse' => false));
     $response = $this->_client->send();
     $this->assertNull($this->_client->getLastRawResponse(), 'getLastRawResponse is expected to be null when not storing');
 }