File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/Symfony/Bundle/WebProfilerBundle/Tests/Twig Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 17
17
use Twig \Environment ;
18
18
use Twig \Extension \CoreExtension ;
19
19
use Twig \Extension \EscaperExtension ;
20
- use Twig \Loader \LoaderInterface ;
21
20
22
21
class WebProfilerExtensionTest extends TestCase
23
22
{
@@ -55,13 +54,7 @@ private function mockTwigEnvironment()
55
54
{
56
55
$ twigEnvironment = $ this ->createMock (Environment::class);
57
56
58
- $ loader = $ this ->createMock (LoaderInterface::class);
59
- $ loader
60
- ->expects ($ this ->any ())
61
- ->method ('exists ' )
62
- ->willReturn (true );
63
-
64
- $ twigEnvironment ->expects ($ this ->any ())->method ('getLoader ' )->willReturn ($ loader );
57
+ $ twigEnvironment ->expects ($ this ->any ())->method ('getCharset ' )->willReturn ('UTF-8 ' );
65
58
66
59
return $ twigEnvironment ;
67
60
}
You can’t perform that action at this time.
0 commit comments