[feature/twig] PHP test moved to a separate file

This had to be done because cached template files are available in memory,
so Twig doesn't ever reparse a template on the same page load

PHPBB3-11598
This commit is contained in:
Nathaniel Guse 2013-07-01 12:07:29 -05:00
parent f08330f762
commit 1b2e5503ac

View file

@ -0,0 +1,21 @@
<?php
/**
*
* @package testing
* @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
require_once dirname(__FILE__) . '/template_test_case.php';
class phpbb_template_template_php_test extends phpbb_template_template_test_case
{
public function test_php()
{
$this->setup_engine(array('tpl_allow_php' => true));
$this->run_template('php.html', array(), array(), array(), 'test');
}
}