Jelajahi Sumber

[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 tahun lalu
induk
melakukan
e5c2d5b513
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  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()
     {
         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()