/**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     $accessKey = 'accessKey';
     $secretKey = 'secretKey';
     // Create a stub for Http Client
     $this->httpClient = $this->getMockBuilder('Zend\\Http\\Client')->getMock();
     // Create a stub for Http response for be used later.
     $this->httpResponse = $this->getMockBuilder('Zend\\Http\\Response')->getMock();
     // Create a stub for Uri\Http for later.
     $this->uriHttp = $this->getMockBuilder('Zend\\Uri\\Http')->getMock();
     $this->uriHttp->expects($this->any())->method('isValid')->will($this->returnValue(true));
     // Create a S3 instance
     $this->amazon = new S3($accessKey, $secretKey);
     // Inject the stub into the application.
     $this->amazon->setHttpClient($this->httpClient);
     // Inject the stub into the application.
     $this->amazon->setEndpoint($this->uriHttp);
 }