/** * Registers the given plugin namespace. The instance of the Enlight_Plugin_PluginManager is * set into the namespace by using the Enlight_Plugin_Namespace::setManager() function. * The namespace name is used as array key. * * @param Enlight_Plugin_Namespace $namespace * @return Enlight_Plugin_PluginManager */ public function registerNamespace(Enlight_Plugin_Namespace $namespace) { $namespace->setManager($this); $this->plugins[$namespace->getName()] = $namespace; return $this; }
public function testGetName() { $this->assertEquals('testNamespace', $this->namespace->getName()); }