Explorar o código

Fixes #370 - Zend_Registry test fails since PHP 5.6.0beta1

Frank Brückner %!s(int64=11) %!d(string=hai) anos
pai
achega
c5102e6e8d
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      tests/Zend/RegistryTest.php

+ 1 - 11
tests/Zend/RegistryTest.php

@@ -125,17 +125,7 @@ class Zend_RegistryTest extends PHPUnit_Framework_TestCase
 
     public function testRegistryArrayObject()
     {
-        $registry = Zend_Registry::getInstance();
-        $registry['emptyArray'] = array();
-        $registry['null'] = null;
-
-        $this->assertTrue(isset($registry['emptyArray']));
-        $this->assertTrue(isset($registry['null']));
-        $this->assertFalse(isset($registry['noIndex']));
-
-        $this->assertTrue(Zend_Registry::isRegistered('emptyArray'));
-        $this->assertTrue(Zend_Registry::isRegistered('null'));
-        $this->assertFalse(Zend_Registry::isRegistered('noIndex'));
+        $this->assertTrue(Zend_Registry::getInstance() instanceof ArrayObject);
     }
 
     public function testRegistryArrayAsProps()