public function createArray(array
$array): ArrayFacade
{ return new ArrayFacade($array);
} public function getTests(): array
{ return [ // adds test: "var is true"
new TwigTest('true', null,
['node_class' => TrueTest::
class]),
// adds test: "var is false"
new TwigTest('false', null,
['node_class' => FalseTest::
class]),
// adds test: "var is array"
new TwigTest('array', null,
['node_class' => ArrayTest::
class]),
// adds test: "var is bool" / "var is boolean"
new TwigTest('bool', null,
['node_class' => BooleanTest::
class]),
new TwigTest('boolean', null,
['node_class' => BooleanTest::
class]),
// adds test: "var is callable"
new TwigTest('callable', null,
['node_class' => CallableTest::
class]),
// adds test: "var is float"
new TwigTest('float', null,
['node_class' => FloatTest::
class]),