/** * 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); }
/** * 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); }