Esempio n. 1
0
 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');
 }
Esempio n. 2
0
 /**
  * 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>';
 }
Esempio n. 3
0
 function setUp()
 {
     $this->addHeader('User-Agent: SimpleTest ' . SimpleTestOptions::getVersion());
 }
Esempio n. 4
0
 function AllTests()
 {
     $this->GroupTest("All tests for SimpleTest " . SimpleTestOptions::getVersion());
     $this->AddTestCase(new UnitTests());
     $this->AddTestCase(new BoundaryTests());
 }