Преглед изворни кода

[ZF-11902] Convert usages of assertInstanceOf to assertType to maintain PHPUnit 3.4 compatibility

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24563 44c647ce-9c0f-0410-b52a-842ac1e357ba
adamlundrigan пре 14 година
родитељ
комит
e4b548187b

+ 1 - 1
tests/Zend/Application/Resource/LocaleTest.php

@@ -147,7 +147,7 @@ class Zend_Application_Resource_LocaleTest extends PHPUnit_Framework_TestCase
         $resource = new Zend_Application_Resource_Locale($config);
         $resource->init();
         $backend = Zend_Locale::getCache()->getBackend();
-        $this->assertInstanceOf('Zend_Cache_Backend_BlackHole', $backend);
+        $this->assertType('Zend_Cache_Backend_BlackHole', $backend);
         Zend_Locale::removeCache();
     }
 

+ 1 - 1
tests/Zend/Cloud/Infrastructure/Adapter/Ec2Test.php

@@ -136,7 +136,7 @@ class Zend_Cloud_Infrastructure_Adapter_Ec2Test extends PHPUnit_Framework_TestCa
      */
     public function testGetAdapter()
     {
-        $this->assertInstanceOf('Zend_Service_Amazon_Ec2_Instance',$this->infrastructure->getAdapter());
+        $this->assertType('Zend_Service_Amazon_Ec2_Instance',$this->infrastructure->getAdapter());
     }
 
     /**

+ 1 - 1
tests/Zend/Cloud/Infrastructure/Adapter/RackspaceTest.php

@@ -131,7 +131,7 @@ class Zend_Cloud_Infrastructure_Adapter_RackspaceTest extends PHPUnit_Framework_
      */
     public function testGetAdapter()
     {
-        $this->assertInstanceOf('Zend_Service_Rackspace_Servers',$this->infrastructure->getAdapter());
+        $this->assertType('Zend_Service_Rackspace_Servers',$this->infrastructure->getAdapter());
     }
     /**
      * Test create an instance