示例#1
0
 public function testFactoryWillFailInvalidSection()
 {
     try {
         $object = Ec2\Ec2::factory('avaavaavailabilityzones', 'access_key', 'secret_access_key');
         $this->fail('RuntimeException was expected but not thrown');
     } catch (Ec2\Exception\RuntimeException $e) {
     }
 }
示例#2
0
 public function testFactoryReturnsSecurityGroupsObject()
 {
     $object = Ec2\Ec2::factory('security', 'access_key', 'secret_access_key');
     $this->assertType('\Zend\Service\Amazon\Ec2\Securitygroups', $object);
 }