1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/run.php

100 lines
2.8 KiB
PHP
Raw Normal View History

2006-04-14 00:37:28 +04:00
<?php
2006-04-16 12:41:45 +04:00
ob_start();
2006-05-24 12:46:43 +04:00
require_once("ConfigurableTestCase.php");
require_once("ManagerTestCase.php");
require_once("SessionTestCase.php");
require_once("TableTestCase.php");
require_once("EventListenerTestCase.php");
require_once("BatchIteratorTestCase.php");
require_once("CacheFileTestCase.php");
require_once("RecordTestCase.php");
require_once("AccessTestCase.php");
require_once("ValidatorTestCase.php");
require_once("CollectionTestCase.php");
require_once("PessimisticLockingTestCase.php");
require_once("CacheSqliteTestCase.php");
require_once("CollectionOffsetTestCase.php");
require_once("QueryTestCase.php");
2006-06-13 22:04:04 +04:00
require_once("CacheQuerySqliteTestCase.php");
require_once("ViewTestCase.php");
2006-07-22 03:22:15 +04:00
require_once("RawSqlTestCase.php");
2006-07-26 21:09:00 +04:00
require_once("CustomPrimaryKeyTestCase.php");
require_once("FilterTestCase.php");
require_once("ValueHolderTestCase.php");
2006-08-16 01:33:41 +04:00
require_once("QueryLimitTestCase.php");
2006-04-15 02:25:02 +04:00
2006-04-14 00:37:28 +04:00
error_reporting(E_ALL);
$test = new GroupTest("Doctrine Framework Unit Tests");
2006-08-20 23:25:04 +04:00
$test->addTestCase(new Doctrine_RecordTestCase());
2006-05-31 12:46:44 +04:00
$test->addTestCase(new Doctrine_SessionTestCase());
2006-04-17 02:17:23 +04:00
2006-05-17 21:58:40 +04:00
$test->addTestCase(new Doctrine_TableTestCase());
2006-04-28 00:24:59 +04:00
2006-04-14 00:37:28 +04:00
$test->addTestCase(new Doctrine_ManagerTestCase());
2006-04-17 01:23:38 +04:00
2006-04-14 00:37:28 +04:00
$test->addTestCase(new Doctrine_AccessTestCase());
2006-04-17 00:38:17 +04:00
2006-04-14 00:37:28 +04:00
$test->addTestCase(new Doctrine_EventListenerTestCase());
2006-04-17 02:17:23 +04:00
2006-04-17 01:23:38 +04:00
$test->addTestCase(new Doctrine_BatchIteratorTestCase());
2006-04-16 00:52:23 +04:00
2006-04-17 00:38:17 +04:00
$test->addTestCase(new Doctrine_ConfigurableTestCase());
2006-04-17 02:46:05 +04:00
2006-04-19 20:01:36 +04:00
$test->addTestCase(new Doctrine_Collection_OffsetTestCase());
$test->addTestCase(new Doctrine_PessimisticLockingTestCase());
$test->addTestCase(new Doctrine_ViewTestCase());
$test->addTestCase(new Doctrine_Cache_Query_SqliteTestCase());
2006-07-26 21:09:00 +04:00
$test->addTestCase(new Doctrine_CustomPrimaryKeyTestCase());
$test->addTestCase(new Doctrine_Filter_TestCase());
$test->addTestCase(new Doctrine_ValueHolder_TestCase());
2006-08-16 01:32:59 +04:00
$test->addTestCase(new Doctrine_ValidatorTestCase());
2006-08-16 01:33:18 +04:00
$test->addTestCase(new Doctrine_CollectionTestCase());
2006-08-16 03:25:53 +04:00
$test->addTestCase(new Doctrine_QueryTestCase());
2006-08-16 13:21:47 +04:00
2006-08-16 01:33:41 +04:00
$test->addTestCase(new Doctrine_Query_Limit_TestCase());
2006-08-20 23:25:04 +04:00
2006-08-20 23:21:52 +04:00
$test->addTestCase(new Doctrine_RawSql_TestCase());
2006-04-15 14:15:16 +04:00
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
2006-04-14 00:37:28 +04:00
2006-05-24 12:46:43 +04:00
print "<pre>";
2006-04-14 00:37:28 +04:00
$test->run(new HtmlReporter());
2006-06-30 03:04:39 +04:00
/**
2006-04-15 14:15:16 +04:00
$cache = Doctrine_Manager::getInstance()->getCurrentSession()->getCacheHandler();
if(isset($cache)) {
$a = $cache->getQueries();
print "Executed cache queries: ".count($a)."\n";
2006-06-30 03:04:39 +04:00
2006-04-15 14:15:16 +04:00
foreach($a as $query) {
print $query."\n";
}
2006-06-30 03:04:39 +04:00
2006-04-15 14:15:16 +04:00
}
2006-06-30 03:04:39 +04:00
*/
2006-04-15 02:25:02 +04:00
2006-04-14 14:20:19 +04:00
$dbh = Doctrine_Manager::getInstance()->getCurrentSession()->getDBH();
$a = $dbh->getQueries();
2006-04-14 00:37:28 +04:00
print "Executed queries: ".count($a)."\n";
foreach($a as $query) {
print $query."\n";
}
2006-04-16 12:41:45 +04:00
ob_end_flush();
2006-04-14 00:37:28 +04:00
?>