Sfoglia il codice sorgente

Fix AutoloadGeneratorTest for PHP 5.3.x

Bryan Davis 10 anni fa
parent
commit
92455759fc
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

+ 7 - 1
tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

@@ -68,9 +68,15 @@ class AutoloadGeneratorTest extends TestCase
     private $eventDispatcher;
 
     /**
+     * Map of setting name => return value configuration for the stub Config
+     * object.
+     *
+     * Note: must be public for compatibility with PHP 5.3 runtimes where
+     * closures cannot access private members of the classes they are created
+     * in.
      * @var array
      */
-    private $configValueMap;
+    public $configValueMap;
 
     protected function setUp()
     {