예제 #1
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->Zend_Service_Amazon_Ec2_Securitygroups = new Ec2\SecurityGroups('access_key', 'secret_access_key');
     $adapter = new \Zend\HTTP\Client\Adapter\Test();
     $client = new \Zend\HTTP\Client(null, array('adapter' => $adapter));
     $this->adapter = $adapter;
     Ec2\SecurityGroups::setDefaultHTTPClient($client);
 }
예제 #2
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->securitygroupsInstance = new Ec2\SecurityGroups('access_key', 'secret_access_key');
     $adapter = new \Zend\Http\Client\Adapter\Test();
     $client = new \Zend\Http\Client(null, array('adapter' => $adapter));
     $this->adapter = $adapter;
     Ec2\SecurityGroups::setDefaultHTTPClient($client);
 }