mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
minor #1904 make cache per user (on linux) (remicollet)
This PR was merged into the 1.x branch.
Discussion
----------
make cache per user (on linux)
Just because I hate having failed test when I run test once on 1 account, then once on another account ;)
Commits
-------
da5cac6 make cache per user (on linux)
This commit is contained in:
@@ -152,7 +152,8 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testExtensionsAreNotInitializedWhenRenderingACompiledTemplate()
|
||||
{
|
||||
$cache = new Twig_Cache_Filesystem($dir = sys_get_temp_dir().'/twig');
|
||||
$uid = (function_exists('posix_getuid') ? posix_getuid() : '');
|
||||
$cache = new Twig_Cache_Filesystem($dir = sys_get_temp_dir().'/twig'.$uid);
|
||||
$options = array('cache' => $cache, 'auto_reload' => false, 'debug' => false);
|
||||
|
||||
// force compilation
|
||||
|
||||
Reference in New Issue
Block a user