Browse Source

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 years ago
parent
commit
59d179bd39
1 changed files with 2 additions and 1 deletions
  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(