diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-01-07 01:39:18 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-01-07 01:39:59 +0100 |
commit | 14a84cf89cd41da36545f5f04348c49d4eadfb45 (patch) | |
tree | b04a5988c982b8b367697f03bde3f20ace7d022c /tests/template | |
parent | da4617b14b11ade6f664b8c1ab94e3aeb5b7428d (diff) | |
parent | 5b752a2fed82f27cb1e383583dc4ccb87f7e12e5 (diff) | |
download | forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar.gz forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar.bz2 forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar.xz forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.zip |
Merge branch 'develop-olympus' into develop
This commit also ports all ascraeus tests to the new format.
Conflicts:
tests/all_tests.php
tests/network/all_tests.php
tests/request/all_tests.php
tests/request/request_var.php
tests/template/templates/includephp.html
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/all_tests.php | 40 | ||||
-rw-r--r-- | tests/template/template.php | 4 | ||||
-rw-r--r-- | tests/template/templates/_dummy_include.php | 3 | ||||
-rw-r--r-- | tests/template/templates/_dummy_include.php.inc | 3 | ||||
-rw-r--r-- | tests/template/templates/includephp.html | 2 |
5 files changed, 5 insertions, 47 deletions
diff --git a/tests/template/all_tests.php b/tests/template/all_tests.php deleted file mode 100644 index ea258c1680..0000000000 --- a/tests/template/all_tests.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php -/** -* -* @package testing -* @copyright (c) 2008 phpBB Group -* @license http://opensource.org/licenses/gpl-license.php GNU Public License -* -*/ - -if (!defined('PHPUnit_MAIN_METHOD')) -{ - define('PHPUnit_MAIN_METHOD', 'phpbb_template_all_tests::main'); -} - -require_once 'test_framework/framework.php'; -require_once 'PHPUnit/TextUI/TestRunner.php'; - -require_once 'template/template.php'; - -class phpbb_template_all_tests -{ - public static function main() - { - PHPUnit_TextUI_TestRunner::run(self::suite()); - } - - public static function suite() - { - $suite = new PHPUnit_Framework_TestSuite('phpBB Template Engine'); - - $suite->addTestSuite('phpbb_template_template_test'); - - return $suite; - } -} - -if (PHPUnit_MAIN_METHOD == 'phpbb_template_all_tests::main') -{ - phpbb_template_all_tests::main(); -} diff --git a/tests/template/template.php b/tests/template/template.php index 0a685bfd61..a58a0a4e0f 100644 --- a/tests/template/template.php +++ b/tests/template/template.php @@ -7,9 +7,7 @@ * */ -require_once 'test_framework/framework.php'; - -require_once '../phpBB/includes/template.php'; +require_once __DIR__ . '/../../phpBB/includes/template.php'; class phpbb_template_template_test extends phpbb_test_case { diff --git a/tests/template/templates/_dummy_include.php b/tests/template/templates/_dummy_include.php deleted file mode 100644 index 1de5dddf59..0000000000 --- a/tests/template/templates/_dummy_include.php +++ /dev/null @@ -1,3 +0,0 @@ -<?php - -echo "testing included php"; diff --git a/tests/template/templates/_dummy_include.php.inc b/tests/template/templates/_dummy_include.php.inc new file mode 100644 index 0000000000..aacb6b2045 --- /dev/null +++ b/tests/template/templates/_dummy_include.php.inc @@ -0,0 +1,3 @@ +<?php +// extension is .php.inc so PHPUnit ignores it +echo "testing included php"; diff --git a/tests/template/templates/includephp.html b/tests/template/templates/includephp.html index 42c78b9377..117d4273f0 100644 --- a/tests/template/templates/includephp.html +++ b/tests/template/templates/includephp.html @@ -1 +1 @@ -<!-- INCLUDEPHP _dummy_include.php --> +<!-- INCLUDEPHP ../templates/_dummy_include.php.inc --> |