Exemplo n.º 1
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     $this->availabilityZones = new Ec2\AvailabilityZones('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\AvailabilityZones::setDefaultHttpClient($client);
 }