瀏覽代碼

Modifed unit test to make it 5.2 compliant

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24684 44c647ce-9c0f-0410-b52a-842ac1e357ba
spabby 14 年之前
父節點
當前提交
59d179bd39
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/Zend/JsonTest.php

+ 2 - 1
tests/Zend/JsonTest.php

@@ -814,7 +814,8 @@ EOB;
         }
         
         require_once dirname(__FILE__ ) . "/Json/_files/ZF11356-NamespacedClass.php";        
-        $inputValue = new \Zend\JsonTest\ZF11356\NamespacedClass(array('foo'));
+        $className = '\Zend\JsonTest\ZF11356\NamespacedClass';
+        $inputValue = new $className(array('foo'));
         
         $encoded = Zend_Json_Encoder::encode($inputValue);
         $this->assertEquals(