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