Ejemplo n.º 1
0
 public function testConfirmProductReturnsFalse()
 {
     $rawHttpResponse = "HTTP/1.1 200 OK\r\n" . "Date: Fri, 24 Oct 2008 17:24:52 GMT\r\n" . "Server: hi\r\n" . "Last-modified: Fri, 24 Oct 2008 17:24:52 GMT\r\n" . "Status: 200 OK\r\n" . "Content-type: application/xml; charset=utf-8\r\n" . "Expires: Tue, 31 Mar 1981 05:00:00 GMT\r\n" . "Connection: close\r\n" . "\r\n" . "<ConfirmProductInstanceResponse xmlns=\"http://ec2.amazonaws.com/doc/2009-04-04/\">\r\n" . "  <result>false</result>\r\n" . "</ConfirmProductInstanceResponse>\r\n";
     $this->httpClientTestAdapter->setResponse($rawHttpResponse);
     $return = $this->instance->confirmProduct('254933287430', 'i-1bda7172');
     $this->assertFalse($return);
 }