Ejemplo n.º 1
0
 /**
  * testCase
  */
 public function testGetName()
 {
     $this->assertEquals("testBootstrap", $this->bootstrap->getName());
 }
Ejemplo n.º 2
0
 /**
  * Registers the given plugin bootstrap. The Enlight_Plugin_PluginCollection instance is
  * set into the plugin by using the Enlight_Plugin_Bootstrap::setCollection() method.
  * The name of the plugin is used as array key.
  *
  * @param Enlight_Plugin_Bootstrap $plugin
  * @return Enlight_Plugin_PluginManager
  */
 public function registerPlugin(Enlight_Plugin_Bootstrap $plugin)
 {
     $plugin->setCollection($this);
     $this->plugins[$plugin->getName()] = $plugin;
     return $this;
 }