You are here

protected function Twig_Test_NodeTestCase::getCompiler in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Test/NodeTestCase.php \Twig_Test_NodeTestCase::getCompiler()
1 call to Twig_Test_NodeTestCase::getCompiler()
Twig_Test_NodeTestCase::assertNodeCompilation in vendor/Twig/Test/NodeTestCase.php

File

vendor/Twig/Test/NodeTestCase.php, line 31

Class

Twig_Test_NodeTestCase

Code

protected function getCompiler(Twig_Environment $environment = null) {
  return new Twig_Compiler(null === $environment ? $this
    ->getEnvironment() : $environment);
}