/** * @group ZF-6543 */ public function testPluginClassesDefiningExplicitTypeWillBeRegisteredWithThatValue() { $this->application->setOptions(array('resources' => array('Zend_Application_Bootstrap_BootstrapAbstractTest_Layout' => array(), 'layout' => array()))); $bootstrap = new Zend_Application_Bootstrap_Bootstrap($this->application); $bootstrap->bootstrap('BootstrapAbstractTestLayout'); $resource1 = $bootstrap->getResource('BootstrapAbstractTestLayout'); $bootstrap->bootstrap('layout'); $resource2 = $bootstrap->getResource('layout'); $this->assertNotSame($resource1, $resource2); $this->assertTrue($resource1 instanceof Zend_Application_Bootstrap_BootstrapAbstractTest_Layout, var_export(array_keys($bootstrap->getPluginResources()), 1)); $this->assertTrue($resource2 instanceof Zend_Layout); }