minor #2126 fixed a test (fabpot)

This PR was merged into the 1.x branch.

Discussion
----------

fixed a test

While working on #1994, I realize that tests added for #1598 were not useful anymore because of the changes made in #1686. This PR fixes that.

Commits
-------

85fb2a1 fixed a test
This commit is contained in:
Fabien Potencier
2016-09-19 20:37:44 -07:00
+2 -4
View File
@@ -77,10 +77,8 @@ class Twig_Tests_Loader_FilesystemTest extends PHPUnit_Framework_TestCase
$basePath.'/named_ter',
), $loader->getPaths('named'));
$this->assertEquals(
realpath($basePath.'/named_quater/named_absolute.html'),
realpath($loader->getCacheKey('@named/named_absolute.html'))
);
// do not use realpath here as it would make the test unuseful
$this->assertEquals(str_replace('\\', '/', $basePath.'/named_quater/named_absolute.html'), str_replace('\\', '/', $loader->getCacheKey('@named/named_absolute.html')));
$this->assertEquals("path (final)\n", $loader->getSource('index.html'));
$this->assertEquals("path (final)\n", $loader->getSource('@__main__/index.html'));
$this->assertEquals("named path (final)\n", $loader->getSource('@named/index.html'));