From 3a16d29f22d2f51aa5ddf3540ed1685fca9da5b0 Mon Sep 17 00:00:00 2001 From: Arthur Portugal Date: Tue, 26 Jan 2010 10:01:07 -0500 Subject: [PATCH] Fixed style for the tests using simpletest CT#191 --- tests/simpletest/reporter.php | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/tests/simpletest/reporter.php b/tests/simpletest/reporter.php index d2d24dca07..b88b7efbef 100755 --- a/tests/simpletest/reporter.php +++ b/tests/simpletest/reporter.php @@ -41,18 +41,18 @@ class HtmlReporter extends SimpleReporter { function paintHeader($test_name) { $this->sendNoCacheHeaders(); print ""; - echo ''; + echo ''; echo ''; echo 'Test Suite'; echo ''; echo ''; - echo '
';//wrapper + echo '
';//wrapper echo '
';//header1 - echo '
';//header3 - echo '
';//header4 + echo '

';//header3 + echo '

';//header4 echo ''. date('Y - m - d').''; echo '
';//fin header 4 - echo '
';//fin header 3 + echo '

';//fin header 3 echo '
';//fin header 1 echo '
';//header2 echo '
@@ -66,12 +66,17 @@ class HtmlReporter extends SimpleReporter {

You can always find more information about simpletest on the website: http://www.lastcraft.com

"Only a well software like Chamilo, is perfect when has been tested by excellent The Testing Engineers".

';//content2 - echo '
';//fin header2 - - - + echo '

';//fin header2 + //flush(); } + function footer() { + + echo '
'; + echo '
';//fin footer 1 + + } + /** * Send the headers necessary to ensure the page is * reloaded on every request. Otherwise you could be @@ -109,7 +114,10 @@ class HtmlReporter extends SimpleReporter { */ function paintFooter($test_name) { $colour = ($this->getFailCount() + $this->getExceptionCount() > 0 ? "red" : "green"); - echo '
';//header 5 + echo '
';//header 5 + print "\n"; echo ' Test cases complete: '; echo $this->getTestCaseProgress() . '/' . $this->getTestCaseCount().'

'; echo 'Passes: ' . $this->getPassCount() . ' '; @@ -117,10 +125,10 @@ class HtmlReporter extends SimpleReporter { echo 'Exceptions: ' . $this->getExceptionCount() . ' '; echo '
';//fin header5 echo '
';//fin wrapper - echo '
'; - echo '
';//fin footer 1,2 + echo '
'; + echo '
';//fin footer 1 echo ''; - echo ''; + echo ''; }