/**
  * Test ability for textcollector to detect modules
  */
 public function testModuleDetection()
 {
     ClassLoader::instance()->pushManifest($this->manifest);
     $collector = new i18nTextCollectorTest_Collector();
     $modules = $collector->getModules_Test($this->alternateBasePath);
     $this->assertEquals(array('i18nnonstandardmodule', 'i18nothermodule', 'i18ntestmodule', 'themes/testtheme1', 'themes/testtheme2'), $modules);
     $this->assertEquals('i18ntestmodule', $collector->findModuleForClass_Test('i18nTestNamespacedClass'));
     $this->assertEquals('i18ntestmodule', $collector->findModuleForClass_Test('i18nTest\\i18nTestNamespacedClass'));
     $this->assertEquals('i18ntestmodule', $collector->findModuleForClass_Test('i18nTestSubModule'));
 }
 /**
  * Test ability for textcollector to detect modules
  */
 public function testModuleDetection()
 {
     $collector = new i18nTextCollectorTest_Collector();
     $modules = $collector->getModules_Test($this->alternateBasePath);
     $this->assertEquals(array('i18nnonstandardmodule', 'i18nothermodule', 'i18ntestmodule', 'themes/testtheme1', 'themes/testtheme2'), $modules);
 }