public function testDeleteSnapshot() { $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" . "<DeleteSnapshotResponse xmlns=\"http://ec2.amazonaws.com/doc/2009-04-04/\">\r\n" . " <return>true</return>\r\n" . "</DeleteSnapshotResponse>"; $this->httpClientTestAdapter->setResponse($rawHttpResponse); $return = $this->ebsInstance->deleteSnapshot('snap-78a54011'); $this->assertTrue($return); }