/**
  * @group ZF-6543
  */
 public function testPluginClassesDefiningExplicitTypeWillBeRegisteredWithThatValue()
 {
     $this->application->setOptions(array('resources' => array('ZendTest\\Application\\Layout' => array(), 'layout' => array())));
     set_error_handler(array($this, 'handleError'));
     $bootstrap = new Application\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 Layout, var_export(array_keys($bootstrap->getPluginResources()), 1));
     $this->assertTrue($resource2 instanceof \Zend\Layout\Layout);
     restore_error_handler();
 }