paintFooter() public méthode

Paints the end of the test with a summary of the passes and failures.
public paintFooter ( string $test_name )
$test_name string Name class of test.
 /**
  * Paints the end of the test with a summary of
  * the passes and failures.
  *
  * @param string $test_name Name class of test.
  * @access public
  */
 function paintFooter($test_name)
 {
     parent::paintFooter($test_name);
     echo 'Time taken by tests (in seconds): ' . $this->_timeDuration . "\n";
     if (function_exists('memory_get_peak_usage')) {
         echo 'Peak memory use: (in bytes): ' . number_format(memory_get_peak_usage()) . "\n";
     }
 }
 function paintFooter($test_name)
 {
     parent::paintFooter($test_name);
     $runner = lmbTestRunner::getCurrent();
     print 'Tests time: ' . $runner->getRuntime() . " sec.\n";
     if ($memory = $runner->getMemoryUsage()) {
         print 'Tests memory usage: ' . $memory . " Mb.\n";
     }
     if ($this->failed_tests) {
         print "=========== FAILED TESTS  ===========\n";
         print implode("\n", $this->failed_tests) . "\n";
     }
 }
 /**
  * Capture the attempt to display the final test results and insert the 
  * ANSI-color codes in place.
  *
  * @param string
  * @see TextReporter
  * @access public
  */
 function paintFooter($test_name)
 {
     ob_start();
     parent::paintFooter($test_name);
     $output = trim(ob_get_clean());
     if ($output) {
         if ($this->getFailCount() + $this->getExceptionCount() == 0) {
             $color = $this->_passColor;
         } else {
             $color = $this->_failColor;
         }
         $this->_setColor($color);
         echo $output;
         $this->_resetColor();
     }
 }
Exemple #4
0
 public function paintFooter($test_name)
 {
     parent::paintFooter($test_name);
     echo 'Time: ' . $GLOBALS['TIME'] . "\n";
 }
Exemple #5
0
    function paintFooter($test_name) {
        parent::paintFooter($test_name);

    }