/**
  * @medium
  */
 public function testScan()
 {
     Erfurt_App::getInstance(false)->getCache()->clean();
     // clear cache, since otherwise the extension manager may have the real extensions loaded
     if (function_exists('apc_clear_cache')) {
         apc_clear_cache('user');
     }
     $em = new OntoWiki_Extension_Manager($this->_resourcesDirectory, CACHE_PATH . 'extensions_test.json');
     $ex = $em->getExtensions();
     $this->assertCount(2, $ex);
     $this->assertArrayHasKey('test1', $ex);
     $this->assertArrayHasKey('test2', $ex);
     //test local ini
     $this->assertFalse((bool) $ex['test2']->private->sub->b);
 }
 /**
  * @medium
  */
 public function testScan()
 {
     $this->markTestSkipped('TODO: test with new caching backend');
     // clear cache, since otherwise the extension manager may have the real extensions loaded
     if (function_exists('apc_clear_cache')) {
         apc_clear_cache('user');
     }
     $em = new OntoWiki_Extension_Manager($this->_resourcesDirectory, CACHE_PATH . 'extensions_test.json');
     $ex = $em->getExtensions();
     $this->assertCount(2, $ex);
     $this->assertArrayHasKey('test1', $ex);
     $this->assertArrayHasKey('test2', $ex);
     //test local ini
     $this->assertFalse((bool) $ex['test2']->private->sub->b);
 }