mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8055b4b291
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41270 467b73ca-7a2a-4603-9d3b-597d59a354a9
36 lines
722 B
PHP
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();
|
|
}
|
|
?>
|