<?php
function twig_theme_test_theme($existing, $type, $theme, $path) {
$items['twig_theme_test_php_variables'] = array(
'template' => 'twig_theme_test.php_variables',
);
return $items;
}
function _test_theme_twig_php_values() {
return array(
'twig_null' => array(
'value' => NULL,
'expected' => '',
),
'twig_bool_false' => array(
'value' => FALSE,
'expected' => '',
),
'twig_bool_true' => array(
'value' => TRUE,
'expected' => '1',
),
'twig_int' => array(
'value' => 1,
'expected' => '1',
),
'twig_int_0' => array(
'value' => 0,
'expected' => '0',
),
'twig_float' => array(
'value' => 122.34343,
'expected' => '122.34343',
),
'twig_string' => array(
'value' => 'Hello world!',
'expected' => 'Hello world!',
),
);
}