本文整理匯總了PHP中HtmlReporter::paintMessage方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlReporter::paintMessage方法的具體用法?PHP HtmlReporter::paintMessage怎麽用?PHP HtmlReporter::paintMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HtmlReporter
的用法示例。
在下文中一共展示了HtmlReporter::paintMessage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GroupTest
$parser->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'namespace-syntax.php');
$standardDoclet = new GroupTest('Standard Doclet');
$standardDoclet->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'standard-doclet.php');
$standardDoclet->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'access.php');
$standardDoclet->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'access-php5.php');
$standardDoclet->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'throws-tag.php');
$fixes = new GroupTest('Bugfixes');
// these tests will work with PHP5 < 5.3
$fixes->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'linefeed.php');
$fixes->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'lastline.php');
$fixes->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'zerovalue.php');
$fixes->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'todo.php');
$fixes->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'comment-links.php');
$formatters = new GroupTest('Formatters');
// these tests will work with PHP5 < 5.3
$formatters->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'lists-ul.php');
include_once "markdown.php";
if (function_exists('Markdown')) {
$formatters->addTestFile('tests' . DIRECTORY_SEPARATOR . 'cases' . DIRECTORY_SEPARATOR . 'markdown.php');
} else {
$reporter->paintMessage("Not running Markdown test, Markdown not available on system");
}
$test = new GroupTest('PHPDoctor');
$test->addTestCase($parser);
$test->addTestCase($standardDoclet);
$test->addTestCase($fixes);
$test->addTestCase($formatters);
if (TextReporter::inCli()) {
exit($test->run($reporter) ? 0 : 1);
}
$test->run($reporter);