getAppRoot() public method

public getAppRoot ( ) : null | string
return null | string
コード例 #1
0
ファイル: EngineTest.php プロジェクト: keepeye/EvaEngine
 public function testPath()
 {
     $engine = new Engine('foo');
     $this->assertEquals('foo', $engine->getAppRoot());
     $this->assertEquals('foo/config', $engine->getConfigPath());
     $this->assertEquals('foo/modules', $engine->getModulesPath());
     $engine->setConfigPath('bar');
     $engine->setModulesPath('bar');
     $this->assertEquals('bar', $engine->getConfigPath());
     $this->assertEquals('bar', $engine->getModulesPath());
 }