當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HtmlReporter::paintMessage方法代碼示例

本文整理匯總了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);
開發者ID:noah-goodrich,項目名稱:phpdoctor,代碼行數:31,代碼來源:test.php


注:本文中的HtmlReporter::paintMessage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。