You are here

public function Twig_Tests_IntegrationTest::getExtensions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/IntegrationTest.php \Twig_Tests_IntegrationTest::getExtensions()

Return value

Twig_ExtensionInterface[]

Overrides Twig_Test_IntegrationTestCase::getExtensions

File

vendor/twig/twig/test/Twig/Tests/IntegrationTest.php, line 21

Class

Twig_Tests_IntegrationTest

Code

public function getExtensions() {
  $policy = new Twig_Sandbox_SecurityPolicy(array(), array(), array(), array(), array());
  return array(
    new Twig_Extension_Debug(),
    new Twig_Extension_Sandbox($policy, false),
    new Twig_Extension_StringLoader(),
    new TwigTestExtension(),
  );
}