Jeremy Shipman cdafcbcf77 Getting rid of pear folder. Modifying and moving bbcode parsing to parsers.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.1.0@41607 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 14:55:15 +13:00

36 lines
722 B
PHP

<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'AllTests::main');
chdir(dirname(__FILE__) . '/../');
}
if (!defined('PHPUnit_INSIDE_OWN_TESTSUITE')) {
define('PHPUnit_INSIDE_OWN_TESTSUITE', TRUE);
}
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'HTML_BBCodeParserTest.php';
class AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('HTML_BBCodeParserTest');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
AllTests::main();
}
?>