function testGetFilesystemPathWithSlashAtTheEnd() { $GLOBALS['sys_pluginsroot'] = '/my/application/'; $pm = new MockPluginManager($this); $pm->setReturnValue('getNameForPlugin', 'zataz'); $pm->setReturnValue('pluginIsCustom', false); $p = new PluginTestVersion($this); $p->setReturnValue('_getPluginManager', $pm); $this->assertEqual($p->getFilesystemPath(), '/my/application/zataz'); }