mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-28 10:09:15 +02:00
34 lines
668 B
PHP
34 lines
668 B
PHP
<?php
|
|
define('IN_PHPBB', true);
|
|
if (!defined('PHPUnit_MAIN_METHOD'))
|
|
{
|
|
define('PHPUnit_MAIN_METHOD', 'phpbb_bbcode_all_tests::main');
|
|
}
|
|
|
|
require_once 'PHPUnit/Framework.php';
|
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
|
require_once 'bbcode/parser_test.php';
|
|
|
|
class phpbb_bbcode_all_tests
|
|
{
|
|
public static function main()
|
|
{
|
|
PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
}
|
|
|
|
public static function suite()
|
|
{
|
|
$suite = new PHPUnit_Framework_TestSuite('phpBB Formatted Text / BBCode');
|
|
|
|
$suite->addTestSuite('phpbb_bbcode_parser_test');
|
|
|
|
return $suite;
|
|
}
|
|
}
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'phpbb_bbcode_all_tests::main')
|
|
{
|
|
phpbb_bbcode_all_tests::main();
|
|
}
|
|
?>
|