1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +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,42 +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_dbal_all_tests::main');
}
require_once 'test_framework/framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'dbal/select.php';
require_once 'dbal/write.php';
class phpbb_dbal_all_tests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('phpBB Database Abstraction Layer');
$suite->addTestSuite('phpbb_dbal_select_test');
$suite->addTestSuite('phpbb_dbal_write_test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'phpbb_dbal_all_tests::main')
{
phpbb_dbal_all_tests::main();
}

View File

@@ -7,8 +7,7 @@
*
*/
require_once 'test_framework/framework.php';
require_once '../phpBB/includes/functions.php';
require_once __DIR__ . '/../../phpBB/includes/functions.php';
class phpbb_dbal_select_test extends phpbb_database_test_case
{

View File

@@ -7,8 +7,7 @@
*
*/
require_once 'test_framework/framework.php';
require_once '../phpBB/includes/functions.php';
require_once __DIR__ . '/../../phpBB/includes/functions.php';
class phpbb_dbal_write_test extends phpbb_database_test_case
{