mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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();
|
||
|
}
|
||
|
?>
|