public function Twig_SimpleTest::__construct

File

drupal/core/vendor/twig/twig/lib/Twig/SimpleTest.php, line 23

Class

Twig_SimpleTest
Represents a template test.

Code

public function __construct($name, $callable, array $options = array()) {
  $this->name = $name;
  $this->callable = $callable;
  $this->options = array_merge(array(
    'node_class' => 'Twig_Node_Expression_Test',
  ), $options);
}