1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-28 10:09:15 +02:00
php-phpbb/tests/bbcode/all_tests.php
Nils Adermann 771fd3696d adding a bbcode test suite
git-svn-id: file:///svn/phpbb/trunk@8541 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-05-04 12:54:47 +00:00

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();
}
?>