2006-04-13 20:37:28 +00:00
|
|
|
<?php
|
2006-04-16 08:41:45 +00:00
|
|
|
ob_start();
|
2006-05-24 08:46:43 +00:00
|
|
|
|
2006-06-06 20:37:56 +00:00
|
|
|
require_once("ConfigurableTestCase.php");
|
|
|
|
require_once("ManagerTestCase.php");
|
2006-08-21 23:20:33 +00:00
|
|
|
require_once("ConnectionTestCase.php");
|
2006-06-06 20:37:56 +00:00
|
|
|
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");
|
2006-06-07 12:16:00 +00:00
|
|
|
require_once("PessimisticLockingTestCase.php");
|
2006-06-06 20:37:56 +00:00
|
|
|
|
|
|
|
require_once("CacheSqliteTestCase.php");
|
|
|
|
require_once("CollectionOffsetTestCase.php");
|
|
|
|
require_once("QueryTestCase.php");
|
2006-06-13 18:04:04 +00:00
|
|
|
require_once("CacheQuerySqliteTestCase.php");
|
|
|
|
require_once("ViewTestCase.php");
|
2006-07-21 23:22:15 +00:00
|
|
|
require_once("RawSqlTestCase.php");
|
2006-07-26 17:09:00 +00:00
|
|
|
require_once("CustomPrimaryKeyTestCase.php");
|
2006-07-27 17:51:19 +00:00
|
|
|
require_once("FilterTestCase.php");
|
2006-08-07 09:55:46 +00:00
|
|
|
require_once("ValueHolderTestCase.php");
|
2006-08-15 21:33:41 +00:00
|
|
|
require_once("QueryLimitTestCase.php");
|
2006-09-18 17:32:12 +00:00
|
|
|
require_once("QueryReferenceModelTestCase.php");
|
2006-09-21 21:09:58 +00:00
|
|
|
require_once("DBTestCase.php");
|
2006-08-26 22:27:16 +00:00
|
|
|
require_once("SchemaTestCase.php");
|
|
|
|
require_once("ImportTestCase.php");
|
|
|
|
|
2006-04-13 20:37:28 +00:00
|
|
|
error_reporting(E_ALL);
|
|
|
|
|
|
|
|
$test = new GroupTest("Doctrine Framework Unit Tests");
|
2006-09-20 09:35:29 +00:00
|
|
|
|
|
|
|
|
2006-09-21 21:09:58 +00:00
|
|
|
//$test->addTestCase(new Doctrine_DB_TestCase());
|
2006-09-20 09:35:29 +00:00
|
|
|
|
|
|
|
$test->addTestCase(new Doctrine_ConnectionTestCase());
|
|
|
|
|
2006-09-15 20:56:25 +00:00
|
|
|
$test->addTestCase(new Doctrine_RecordTestCase());
|
2006-09-13 20:47:29 +00:00
|
|
|
|
2006-09-15 20:56:25 +00:00
|
|
|
$test->addTestCase(new Doctrine_AccessTestCase());
|
2006-09-12 10:15:58 +00:00
|
|
|
|
2006-09-15 20:56:25 +00:00
|
|
|
$test->addTestCase(new Doctrine_EventListenerTestCase());
|
2006-05-31 08:46:44 +00:00
|
|
|
|
2006-09-08 23:20:51 +00:00
|
|
|
$test->addTestCase(new Doctrine_TableTestCase());
|
|
|
|
|
2006-04-13 20:37:28 +00:00
|
|
|
$test->addTestCase(new Doctrine_ManagerTestCase());
|
2006-08-22 20:14:29 +00:00
|
|
|
|
2006-04-16 21:23:38 +00:00
|
|
|
$test->addTestCase(new Doctrine_BatchIteratorTestCase());
|
2006-04-15 20:52:23 +00:00
|
|
|
|
2006-04-16 20:38:17 +00:00
|
|
|
$test->addTestCase(new Doctrine_ConfigurableTestCase());
|
2006-04-16 22:46:05 +00:00
|
|
|
|
2006-09-20 09:35:29 +00:00
|
|
|
$test->addTestCase(new Doctrine_ValidatorTestCase());
|
|
|
|
|
2006-04-19 16:01:36 +00:00
|
|
|
$test->addTestCase(new Doctrine_Collection_OffsetTestCase());
|
2006-05-09 21:38:34 +00:00
|
|
|
|
2006-06-08 13:17:15 +00:00
|
|
|
$test->addTestCase(new Doctrine_PessimisticLockingTestCase());
|
|
|
|
|
2006-06-14 19:17:38 +00:00
|
|
|
$test->addTestCase(new Doctrine_ViewTestCase());
|
|
|
|
|
2006-06-18 22:45:54 +00:00
|
|
|
$test->addTestCase(new Doctrine_Cache_Query_SqliteTestCase());
|
|
|
|
|
2006-07-26 17:09:00 +00:00
|
|
|
$test->addTestCase(new Doctrine_CustomPrimaryKeyTestCase());
|
|
|
|
|
2006-07-27 17:51:19 +00:00
|
|
|
$test->addTestCase(new Doctrine_Filter_TestCase());
|
|
|
|
|
2006-08-07 09:55:46 +00:00
|
|
|
$test->addTestCase(new Doctrine_ValueHolder_TestCase());
|
2006-08-15 21:32:59 +00:00
|
|
|
|
2006-08-21 22:04:13 +00:00
|
|
|
$test->addTestCase(new Doctrine_RawSql_TestCase());
|
2006-08-21 22:51:27 +00:00
|
|
|
|
2006-08-22 21:18:06 +00:00
|
|
|
$test->addTestCase(new Doctrine_Query_Limit_TestCase());
|
2006-08-22 20:14:29 +00:00
|
|
|
|
2006-08-26 22:27:16 +00:00
|
|
|
$test->addTestCase(new Doctrine_SchemaTestCase());
|
|
|
|
|
|
|
|
$test->addTestCase(new Doctrine_ImportTestCase());
|
|
|
|
|
2006-09-13 20:47:29 +00:00
|
|
|
$test->addTestCase(new Doctrine_CollectionTestCase());
|
2006-09-15 10:04:22 +00:00
|
|
|
|
2006-09-08 23:20:51 +00:00
|
|
|
$test->addTestCase(new Doctrine_QueryTestCase());
|
2006-09-20 09:35:29 +00:00
|
|
|
|
2006-09-18 17:32:12 +00:00
|
|
|
$test->addTestCase(new Doctrine_Query_ReferenceModel_TestCase());
|
2006-09-03 19:20:02 +00:00
|
|
|
|
2006-09-08 23:20:51 +00:00
|
|
|
|
|
|
|
|
2006-04-15 10:15:16 +00:00
|
|
|
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
|
|
|
|
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
|
|
|
|
|
2006-04-13 20:37:28 +00:00
|
|
|
|
2006-05-24 08:46:43 +00:00
|
|
|
print "<pre>";
|
2006-04-13 20:37:28 +00:00
|
|
|
$test->run(new HtmlReporter());
|
2006-06-29 23:04:39 +00:00
|
|
|
/**
|
2006-08-21 23:20:33 +00:00
|
|
|
$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
|
2006-04-15 10:15:16 +00:00
|
|
|
if(isset($cache)) {
|
|
|
|
$a = $cache->getQueries();
|
|
|
|
print "Executed cache queries: ".count($a)."\n";
|
2006-06-29 23:04:39 +00:00
|
|
|
|
2006-04-15 10:15:16 +00:00
|
|
|
foreach($a as $query) {
|
|
|
|
print $query."\n";
|
|
|
|
}
|
2006-06-29 23:04:39 +00:00
|
|
|
|
2006-04-15 10:15:16 +00:00
|
|
|
}
|
2006-06-29 23:04:39 +00:00
|
|
|
*/
|
2006-04-14 22:25:02 +00:00
|
|
|
|
2006-08-21 23:20:33 +00:00
|
|
|
$dbh = Doctrine_Manager::getInstance()->getCurrentConnection()->getDBH();
|
2006-04-14 10:20:19 +00:00
|
|
|
$a = $dbh->getQueries();
|
2006-04-13 20:37:28 +00:00
|
|
|
|
|
|
|
print "Executed queries: ".count($a)."\n";
|
|
|
|
|
|
|
|
foreach($a as $query) {
|
|
|
|
print $query."\n";
|
|
|
|
}
|
2006-04-16 08:41:45 +00:00
|
|
|
ob_end_flush();
|
2006-04-13 20:37:28 +00:00
|
|
|
?>
|