getCacheDir() public method

Returns the current cache dir.
public getCacheDir ( ) : string
return string Absolute path to cache dir.
コード例 #1
0
ファイル: SmartyTest.php プロジェクト: Nkelliny/Framework
 /**
  * @dataProvider dataProvider
  */
 public function testSetGetCacheDir(Smarty $smarty)
 {
     $this->assertSame(__DIR__ . '/Templates/Cache', $smarty->getCacheDir());
     $smarty->setCacheDir('/tmp/new-cache');
     $this->assertSame('/tmp/new-cache', $smarty->getCacheDir());
 }