|
|
@@ -55,23 +55,23 @@ class Zend_Service_Amazon_Ec2_AbstractTest extends PHPUnit_Framework_TestCase
|
|
|
public function testNoKeysThrowException()
|
|
|
{
|
|
|
try {
|
|
|
- $class = new TestAmamzonAbstract();
|
|
|
+ $class = new TestAmamzonEc2Abstract();
|
|
|
$this->fail('Exception should be thrown when no keys are passed in.');
|
|
|
} catch(Zend_Service_Amazon_Exception $zsae) {}
|
|
|
}
|
|
|
|
|
|
public function testSetRegion()
|
|
|
{
|
|
|
- TestAmamzonAbstract::setRegion('eu-west-1');
|
|
|
+ TestAmamzonEc2Abstract::setRegion('eu-west-1');
|
|
|
|
|
|
- $class = new TestAmamzonAbstract('TestAccessKey', 'TestSecretKey');
|
|
|
+ $class = new TestAmamzonEc2Abstract('TestAccessKey', 'TestSecretKey');
|
|
|
$this->assertEquals('eu-west-1', $class->returnRegion());
|
|
|
}
|
|
|
|
|
|
public function testSetInvalidRegionThrowsException()
|
|
|
{
|
|
|
try {
|
|
|
- TestAmamzonAbstract::setRegion('eu-west-1a');
|
|
|
+ TestAmamzonEc2Abstract::setRegion('eu-west-1a');
|
|
|
$this->fail('Invalid Region Set with no Exception Thrown');
|
|
|
} catch (Zend_Service_Amazon_Exception $zsae) {
|
|
|
// do nothing
|
|
|
@@ -80,7 +80,7 @@ class Zend_Service_Amazon_Ec2_AbstractTest extends PHPUnit_Framework_TestCase
|
|
|
|
|
|
public function testSignParamsWithSpaceEncodesWithPercentInsteadOfPlus()
|
|
|
{
|
|
|
- $class = new TestAmamzonAbstract('TestAccessKey', 'TestSecretKey');
|
|
|
+ $class = new TestAmamzonEc2Abstract('TestAccessKey', 'TestSecretKey');
|
|
|
$ret = $class->testSign(array('Action' => 'Space Test'));
|
|
|
|
|
|
// this is the encode signuature with urlencode - It's Invalid!
|
|
|
@@ -90,7 +90,7 @@ class Zend_Service_Amazon_Ec2_AbstractTest extends PHPUnit_Framework_TestCase
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class TestAmamzonAbstract extends Zend_Service_Amazon_Ec2_Abstract
|
|
|
+class TestAmamzonEc2Abstract extends Zend_Service_Amazon_Ec2_Abstract
|
|
|
{
|
|
|
|
|
|
public function returnRegion()
|