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:
Fabien Potencier
2015-11-02 15:44:00 +01:00
+2 -1
View File
@@ -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