fixed 5.2 compat

This commit is contained in:
Fabien Potencier
2015-09-10 10:57:20 +02:00
parent c7e9744ca8
commit 37c006f7a7
+1 -1
View File
@@ -142,7 +142,7 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
{
$twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
$expected = file_get_contents(__DIR__.'/Fixtures/environment-compile.php');
$expected = file_get_contents(dirname(__FILE__).'/Fixtures/environment-compile.php');
$this->assertSame($expected, $twig->compileSource("{{ foo }}\n{{ bar }}\n", 'index'));
}