Pārlūkot izejas kodu

ZF-8424: reverted patch


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19312 44c647ce-9c0f-0410-b52a-842ac1e357ba
bate 16 gadi atpakaļ
vecāks
revīzija
851e2fb5c9

+ 1 - 1
library/Zend/Application/Bootstrap/BootstrapAbstract.php

@@ -351,7 +351,7 @@ abstract class Zend_Application_Bootstrap_BootstrapAbstract
                 }
             }
 
-            if (class_exists($plugin, false)) {
+            if (class_exists($plugin)) {
                 $spec = (array) $spec;
                 $spec['bootstrap'] = $this;
                 $instance = new $plugin($spec);

+ 0 - 13
tests/Zend/Application/Bootstrap/BootstrapAbstractTest.php

@@ -719,19 +719,6 @@ class Zend_Application_Bootstrap_BootstrapAbstractTest extends PHPUnit_Framework
         $actual   = $bootstrap->getOptionKeys();
         $this->assertEquals($expected, $actual);
     }
-
-    /**
-     * @group ZF-8424
-     */
-    public function testCallBootstrapHasResourcePluginCausesWarning()
-    {
-        $this->autoloader
-             ->suppressNotFoundWarnings(false)
-             ->setFallbackAutoloader(true);
-        $bootstrap = new Zend_Application_Bootstrap_Bootstrap($this->application);
-        // this should fail with warnings
-        $bootstrap->hasPluginResource('foo');
-    }
 }
 
 class Zend_Application_Bootstrap_BootstrapAbstractTest_View