mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
[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:
21
tests/template/template_php_test.php
Normal file
21
tests/template/template_php_test.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user