示例#1
0
 /**
  * @group ZF-2910
  */
 public function testShouldAllowRetrievingCurrentModuleDirectory()
 {
     $this->testAddModuleDirectory();
     $request = new Request\Http();
     $request->setModuleName('bar');
     $this->_controller->setRequest($request);
     $dir = $this->_controller->getModuleDirectory();
     $this->assertContains('modules' . DIRECTORY_SEPARATOR . 'bar', $dir);
     $this->assertNotContains('controllers', $dir);
 }