public function testMagicMethodsForPluginResources()
 {
     $bootstrap = new TestAsset\ZfAppBootstrap($this->application);
     $broker = $bootstrap->getBroker();
     require_once __DIR__ . '/TestAsset/resources/Baz.php';
     $broker->getClassLoader()->registerPlugin('baz', 'ZendTest\\Application\\TestAsset\\Resource\\Baz');
     $broker->registerSpec('baz');
     $bootstrap->bootstrap('baz');
     $this->assertTrue(isset($bootstrap->baz));
     $resource = $bootstrap->baz;
     $this->assertEquals('Baz', $resource->baz);
 }
 public function testMagicMethodsForPluginResources()
 {
     $bootstrap = new TestAsset\ZfAppBootstrap($this->application);
     $bootstrap->getPluginLoader()->addPrefixPath('ZendTest\\Application\\TestAsset\\Resource', __DIR__ . '/TestAsset/resources');
     $bootstrap->registerPluginResource('baz');
     $bootstrap->bootstrap('baz');
     $this->assertTrue(isset($bootstrap->baz));
     $resource = $bootstrap->baz;
     $this->assertEquals('Baz', $resource->baz);
 }