本文整理汇总了PHP中SimpleTestOptions::getVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleTestOptions::getVersion方法的具体用法?PHP SimpleTestOptions::getVersion怎么用?PHP SimpleTestOptions::getVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleTestOptions
的用法示例。
在下文中一共展示了SimpleTestOptions::getVersion方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AllTests
function AllTests() {
$this->GroupTest('All tests for SimpleTest ' . SimpleTestOptions::getVersion());
$this->AddTestCase(new UnitTests());
$this->addTestFile('shell_test.php');
$this->addTestFile('live_test.php');
$this->addTestFile('acceptance_test.php');
$this->addTestFile('real_sites_test.php');
}
示例2: paintFooter
/**
* Output anything that should appear below all the test output, e.g. summary information.
*/
function paintFooter($test_name)
{
$summarydata = new stdClass();
$summarydata->run = $this->getTestCaseProgress();
$summarydata->total = $this->getTestCaseCount();
$summarydata->passes = $this->getPassCount();
$summarydata->fails = $this->getFailCount();
$summarydata->exceptions = $this->getExceptionCount();
if ($summarydata->fails == 0 && $summarydata->exceptions == 0) {
$status = "passed";
} else {
$status = "failed";
}
echo '<div class="unittestsummary ', $status, '">';
echo $this->get_string('summary', $summarydata);
echo '</div>';
echo '<div class="performanceinfo">', $this->get_string('runat', userdate($this->timestart)), ' ', $this->get_string('timetakes', format_time(time() - $this->timestart)), ' ', $this->get_string('version', SimpleTestOptions::getVersion()), '</div>';
}
示例3: setUp
function setUp()
{
$this->addHeader('User-Agent: SimpleTest ' . SimpleTestOptions::getVersion());
}
示例4: AllTests
function AllTests()
{
$this->GroupTest("All tests for SimpleTest " . SimpleTestOptions::getVersion());
$this->AddTestCase(new UnitTests());
$this->AddTestCase(new BoundaryTests());
}