function test_DependencyArray()
 {
     $oPluginManager = new OX_Plugin_ComponentGroupManager();
     $oPluginManager->pathPackages = $this->testpathPackages;
     $aConf = array('testPlugin' => 1, 'testDepends' => 0);
     $GLOBALS['_MAX']['CONF']['pluginGroupComponents'] = $aConf;
     $oPluginManager->_registerPluginVersion('testPlugin', '0.0.1');
     $oPluginManager->_registerPluginVersion('testDepends', '0.0.1-test');
     $aDepends = $oPluginManager->_buildDependencyArray();
     $this->assertIsA($aDepends, 'array');
     $this->assertEqual(count($aDepends), 2);
     $this->assertEqual($aDepends['testPlugin']['isDependedOnBy'][0], 'testDepends');
     $this->assertEqual($aDepends['testDepends']['dependsOn']['testPlugin'], '0.0.1');
     $this->assertTrue($oPluginManager->_saveDependencyArray($aDepends));
     $aDepends = $oPluginManager->_loadDependencyArray();
     $this->assertIsA($aDepends, 'array');
     $this->assertEqual(count($aDepends), 2);
     $this->assertTrue($oPluginManager->_hasDependencies('testPlugin'));
     $this->assertFalse($oPluginManager->_hasDependencies('testDepends'));
     $this->assertEqual($aDepends['testPlugin']['isDependedOnBy'][0], 'testDepends');
     $this->assertEqual($aDepends['testDepends']['dependsOn']['testPlugin'], '0.0.1');
     $GLOBALS['_MAX']['CONF']['pluginGroupComponents'] = array();
     $aDepends = $oPluginManager->_buildDependencyArray();
     $this->assertIsA($aDepends, 'array');
     $this->assertEqual(count($aDepends), 0);
     $this->assertTrue($oPluginManager->_saveDependencyArray($aDepends));
     $aDepends = $oPluginManager->_loadDependencyArray();
     $this->assertIsA($aDepends, 'array');
     $this->assertEqual(count($aDepends), 0);
     $oPluginManager->_clearDependencyCache();
     $oPluginManager->_unregisterPluginVersion('testPlugin');
     $oPluginManager->_unregisterPluginVersion('testDepends');
     unset($GLOBALS['_MAX']['CONF']['pluginGroupComponents']);
 }