diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-01 12:07:29 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-01 12:07:29 -0500 |
| commit | 1b2e5503ac770c1825664507cd4b9407d177a2d9 (patch) | |
| tree | b27120d075394b987ef931202fbc50aa61d0899f /tests/template | |
| parent | f08330f7620f16ed6a127768a74ef6748bcb972c (diff) | |
| download | forums-1b2e5503ac770c1825664507cd4b9407d177a2d9.tar forums-1b2e5503ac770c1825664507cd4b9407d177a2d9.tar.gz forums-1b2e5503ac770c1825664507cd4b9407d177a2d9.tar.bz2 forums-1b2e5503ac770c1825664507cd4b9407d177a2d9.tar.xz forums-1b2e5503ac770c1825664507cd4b9407d177a2d9.zip | |
[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
Diffstat (limited to 'tests/template')
| -rw-r--r-- | tests/template/template_php_test.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/template/template_php_test.php b/tests/template/template_php_test.php new file mode 100644 index 0000000000..9b5e855757 --- /dev/null +++ b/tests/template/template_php_test.php @@ -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'); + } +}
\ No newline at end of file |
