From 32b564e742bbf89d256fd79490757f9315ba6703 Mon Sep 17 00:00:00 2001 From: pookey Date: Wed, 18 Apr 2007 19:29:41 +0000 Subject: [PATCH] minor change to test suite making it behave better in cases of exceptions and fatal errors --- tests/run.php | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/tests/run.php b/tests/run.php index 47b158bc2..6097c1075 100644 --- a/tests/run.php +++ b/tests/run.php @@ -1,5 +1,4 @@ '; $test = new GroupTest('Doctrine Framework Unit Tests'); @@ -274,28 +272,8 @@ if (TextReporter::inCli()) { $password = $argv[3]; } exit ($test->run(new TextReporter()) ? 0 : 1); -} else { - if (isset($_POST)) - { - $dsn = isset($_POST["dsn"])?$_POST["dsn"]:null; - $username = isset($_POST["username"])?$_POST["username"]:null; - $password = isset($_POST["password"])?$_POST["password"]:null; - } - $test->run(new MyReporter()); - $output = ob_get_clean(); } -/** -$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler(); -if(isset($cache)) { - $a = $cache->getQueries(); - print "Executed cache queries: ".count($a)."\n"; - foreach($a as $query) { - print $query."\n"; - } - -} -*/ ?> @@ -332,6 +310,31 @@ if(isset($cache)) {

Tests

+run(new MyReporter());
+    $output = ob_get_clean();
+
+/**
+$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
+if(isset($cache)) {
+    $a     = $cache->getQueries();
+    print "Executed cache queries: ".count($a)."\n";
+
+    foreach($a as $query) {
+        print $query."\n";
+    }
+
+}
+*/
+?>
 
 

Queries