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) { } }
public function testFactoryReturnsSecurityGroupsObject() { $object = Ec2\Ec2::factory('security', 'access_key', 'secret_access_key'); $this->assertType('\Zend\Service\Amazon\Ec2\Securitygroups', $object); }