diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-01-03 22:21:54 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-01-04 22:54:01 +0100 |
commit | 9a52bd030189280f48a35d3b9e52f9d77071cb5e (patch) | |
tree | ca295d6b56ca1e6bcf5617ba42bf4c6f43af7c8d /tests/text_processing | |
parent | c54683be8c0493a51d9a1dbf4c605e95d17940b2 (diff) | |
download | forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar.gz forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar.bz2 forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar.xz forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.zip |
[task/phpunit-xml] Use phpunit.xml for test suite
PHPBB3-9967
Diffstat (limited to 'tests/text_processing')
-rw-r--r-- | tests/text_processing/all_tests.php | 41 | ||||
-rw-r--r-- | tests/text_processing/make_clickable.php | 6 |
2 files changed, 2 insertions, 45 deletions
diff --git a/tests/text_processing/all_tests.php b/tests/text_processing/all_tests.php deleted file mode 100644 index 5e759c72ee..0000000000 --- a/tests/text_processing/all_tests.php +++ /dev/null @@ -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(); -} - diff --git a/tests/text_processing/make_clickable.php b/tests/text_processing/make_clickable.php index a667dd705e..75a35daf82 100644 --- a/tests/text_processing/make_clickable.php +++ b/tests/text_processing/make_clickable.php @@ -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 { |