1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +02:00

[task/phpunit-xml] Use phpunit.xml for test suite

PHPBB3-9967
This commit is contained in:
Igor Wiedler
2011-01-03 22:21:54 +01:00
parent c54683be8c
commit 9a52bd0301
34 changed files with 80 additions and 506 deletions

View File

@@ -1,41 +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_text_processing_all_tests::main');
}
require_once 'test_framework/framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'text_processing/make_clickable.php';
class phpbb_text_processing_all_tests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('phpBB Text Processing Tools');
$suite->addTestSuite('phpbb_text_processing_make_clickable_test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'phpbb_text_processing_all_tests::main')
{
phpbb_text_processing_all_tests::main();
}

View File

@@ -7,10 +7,8 @@
*
*/
require_once 'test_framework/framework.php';
require_once '../phpBB/includes/functions.php';
require_once '../phpBB/includes/functions_content.php';
require_once __DIR__ . '/../../phpBB/includes/functions.php';
require_once __DIR__ . '/../../phpBB/includes/functions_content.php';
class phpbb_text_processing_make_clickable_test extends phpbb_test_case
{