Ejemplo n.º 1
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->Zend_Service_Amazon_Ec2_Instance = new Zend_Service_Amazon_Ec2_Instance('access_key', 'secret_access_key');
     $adapter = new Zend_Http_Client_Adapter_Test();
     $client = new Zend_Http_Client(null, array('adapter' => $adapter));
     $this->adapter = $adapter;
     Zend_Service_Amazon_Ec2_Instance::setHttpClient($client);
 }