Explorar o código

explicit test for ZF-6508

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19064 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob %!s(int64=16) %!d(string=hai) anos
pai
achega
93d86297d9
Modificáronse 2 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      tests/Zend/Config/IniTest.php
  2. BIN=BIN
      tests/Zend/Paginator/_files/test.sqlite

+ 13 - 0
tests/Zend/Config/IniTest.php

@@ -301,4 +301,17 @@ class Zend_Config_IniTest extends PHPUnit_Framework_TestCase
         $this->assertEquals('1', $config->receiver->{0}->html);
         $this->assertNull($config->receiver->mail);
     }
+    
+    /*
+     * @group ZF-6508
+     */
+    public function testPreservationOfIntegerKeys()
+    {
+        $filename = dirname(__FILE__) . '/_files/zf6508.ini';
+        $config = new Zend_Config_Ini($filename, 'all');
+        $this->assertEquals(true, isset($config->{1002}));
+        
+    }
+    
+
 }

BIN=BIN
tests/Zend/Paginator/_files/test.sqlite