Index: library/Zend/Application/Resource/ResourceAbstract.php =================================================================== --- library/Zend/Application/Resource/ResourceAbstract.php (revision 23276) +++ library/Zend/Application/Resource/ResourceAbstract.php (working copy) @@ -83,6 +83,11 @@ */ public function setOptions(array $options) { + if (array_key_exists('bootstrap', $options)) { + $this->setBootstrap($options['bootstrap']); + unset($options['bootstrap']); + } + foreach ($options as $key => $value) { if (in_array(strtolower($key), $this->_skipOptions)) { continue; @@ -92,9 +97,6 @@ if (method_exists($this, $method)) { $this->$method($value); } - if ('bootstrap' === $key) { - unset($options[$key]); - } } $this->_options = $this->mergeOptions($this->_options, $options); Index: tests/Zend/Application/Resource/DbTest.php =================================================================== --- tests/Zend/Application/Resource/DbTest.php (revision 23276) +++ tests/Zend/Application/Resource/DbTest.php (working copy) @@ -192,7 +192,6 @@ $this->bootstrap->registerPluginResource('cachemanager', $configCache); $config = array( - 'bootstrap' => $this->bootstrap, 'adapter' => 'PDO_SQLite', 'params' => array( 'dbname' => ':memory:', @@ -198,6 +197,7 @@ 'dbname' => ':memory:', ), 'defaultMetadataCache' => 'database', + 'bootstrap' => $this->bootstrap, ); $resource = new Zend_Application_Resource_Db($config); $resource->init();