浏览代码

Fix for testExceptionClassMap(Zend_Amf_TypeloaderTest). Closes [ZF-6800].

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15771 44c647ce-9c0f-0410-b52a-842ac1e357ba
alexander 16 年之前
父节点
当前提交
3a32ba7b9e
共有 1 个文件被更改,包括 3 次插入8 次删除
  1. 3 8
      tests/Zend/Amf/TypeLoaderTest.php

+ 3 - 8
tests/Zend/Amf/TypeLoaderTest.php

@@ -54,14 +54,9 @@ class Zend_Amf_TypeloaderTest extends PHPUnit_Framework_TestCase
         $this->assertEquals('Contact', $class);
     }
 
-    public function testExceptionClassMap() {
-        try {
-            $class = Zend_Amf_Parse_TypeLoader::loadType('com.example.vo.Bogus');
-        }
-        catch (Zend_Amf_Exception $expected) {
-            return;
-        }
-        $this->fail('An expected exception has not been raised.');
+    public function testUnknownClassMap() {
+        $class = Zend_Amf_Parse_TypeLoader::loadType('com.example.vo.Bogus');
+        $this->assertEquals('stdClass', $class);
     }
 }