Returns the current cache dir.
public getCacheDir ( ) : string | ||
return | string | Absolute path to cache dir. |
/** * @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()); }