Browse Source

[ZF-11085] Fixed Fatal error in the tests.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23702 44c647ce-9c0f-0410-b52a-842ac1e357ba
ramon 15 years ago
parent
commit
e5c2d5b513
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tests/Zend/Service/Amazon/Ec2/AbstractTest.php

+ 6 - 6
tests/Zend/Service/Amazon/Ec2/AbstractTest.php

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