mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
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
This commit is contained in:
@@ -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();
|
||||
}
|
@@ -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
|
||||
{
|
||||
|
@@ -1,3 +0,0 @@
|
||||
<?php
|
||||
|
||||
echo "testing included php";
|
3
tests/template/templates/_dummy_include.php.inc
Normal file
3
tests/template/templates/_dummy_include.php.inc
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
// extension is .php.inc so PHPUnit ignores it
|
||||
echo "testing included php";
|
@@ -1 +1 @@
|
||||
<!-- INCLUDEPHP _dummy_include.php -->
|
||||
<!-- INCLUDEPHP ../templates/_dummy_include.php.inc -->
|
||||
|
Reference in New Issue
Block a user