mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00: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:
parent
f08330f762
commit
1b2e5503ac
1 changed files with 21 additions and 0 deletions
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');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue