diff --git a/tests/run.php b/tests/run.php index 20f456fbb..064466f77 100644 --- a/tests/run.php +++ b/tests/run.php @@ -95,9 +95,25 @@ $test->addTestCase(new Doctrine_EnumTestCase()); //$test->addTestCase(new Doctrine_Cache_FileTestCase()); //$test->addTestCase(new Doctrine_Cache_SqliteTestCase()); +class MyReporter extends HtmlReporter { + public function paintHeader() {} + public function paintFooter() + { + $colour = ($this->getFailCount() + $this->getExceptionCount() > 0 ? "red" : "green"); + print "
"; + print $this->getTestCaseProgress() . "/" . $this->getTestCaseCount(); + print " test cases complete:\n"; + print "" . $this->getPassCount() . " passes, "; + print "" . $this->getFailCount() . " fails and "; + print "" . $this->getExceptionCount() . " exceptions."; + print "
\n"; + } +} -print "
";
-$test->run(new HtmlReporter());
+$test->run(new MyReporter());
+$output = ob_get_clean();
 /**
 $cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
 if(isset($cache)) {
@@ -110,7 +126,42 @@ if(isset($cache)) {
 
 }
 */
+?>
+
+
 
+  Doctrine Unit Tests
+  
+
+
+
+
+

Doctrine Unit Tests

+

DSN Settings

+
+ + + + + + + + + + + + + + +

Tests

+
+
+
+

Queries

+
+getCurrentConnection()->getDBH();
 $a   = $dbh->getQueries();
 
@@ -119,5 +170,8 @@ print "Executed queries: ".count($a)."\n";
 foreach($a as $query) {
     print $query."\n";
 }
-ob_end_flush();
 ?>
+
+ + +
DSN
Username
Password