You are here

protected function Twig_Test_NodeTestCase::getCompiler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Test/NodeTestCase.php \Twig_Test_NodeTestCase::getCompiler()
3 calls to Twig_Test_NodeTestCase::getCompiler()
Twig_Tests_Node_Expression_FilterTest::testCompileWithMissingNamedArgument in vendor/twig/twig/test/Twig/Tests/Node/Expression/FilterTest.php
@expectedException Twig_Error_Syntax @expectedExceptionMessage Value for argument "from" is required for filter "replace".
Twig_Tests_Node_Expression_FilterTest::testCompileWithWrongNamedArgumentName in vendor/twig/twig/test/Twig/Tests/Node/Expression/FilterTest.php
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unknown argument "foobar" for filter "date(format, timezone)" at line 1.
Twig_Test_NodeTestCase::assertNodeCompilation in vendor/twig/twig/lib/Twig/Test/NodeTestCase.php

File

vendor/twig/twig/lib/Twig/Test/NodeTestCase.php, line 35

Class

Twig_Test_NodeTestCase

Code

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