public function testGetRootDir()
{
$app = new AppForTest(array('environment' => 'test', 'debug' => true, 'rootDir' => __DIR__));
$this->assertEquals(__DIR__, realpath($app->getRootDir()));
chdir(__DIR__);
$app = new AppForTest(array('environment' => 'test', 'debug' => true));
$this->assertEquals(__DIR__, realpath($app->getRootDir()));
}