2006-04-14 00:37:28 +04:00
|
|
|
<?php
|
|
|
|
require_once("ConfigurableTestCase.class.php");
|
|
|
|
require_once("ManagerTestCase.class.php");
|
|
|
|
require_once("SessionTestCase.class.php");
|
|
|
|
require_once("TableTestCase.class.php");
|
|
|
|
require_once("EventListenerTestCase.class.php");
|
|
|
|
require_once("BatchIteratorTestCase.class.php");
|
|
|
|
require_once("CacheFileTestCase.class.php");
|
|
|
|
require_once("RecordTestCase.class.php");
|
|
|
|
require_once("DQLParserTestCase.class.php");
|
|
|
|
require_once("AccessTestCase.class.php");
|
|
|
|
require_once("ValidatorTestCase.class.php");
|
|
|
|
print "<pre>";
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
|
|
|
|
$test = new GroupTest("Doctrine Framework Unit Tests");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$test->addTestCase(new Doctrine_RecordTestCase());
|
2006-04-14 14:20:19 +04:00
|
|
|
|
2006-04-14 00:37:28 +04:00
|
|
|
$test->addTestCase(new Doctrine_SessionTestCase());
|
|
|
|
$test->addTestCase(new Doctrine_ValidatorTestCase());
|
|
|
|
|
|
|
|
$test->addTestCase(new Doctrine_ManagerTestCase());
|
|
|
|
$test->addTestCase(new Doctrine_TableTestCase());
|
|
|
|
|
|
|
|
$test->addTestCase(new Doctrine_AccessTestCase());
|
|
|
|
$test->addTestCase(new Doctrine_ConfigurableTestCase());
|
|
|
|
|
|
|
|
|
|
|
|
$test->addTestCase(new Doctrine_EventListenerTestCase());
|
2006-04-14 14:37:13 +04:00
|
|
|
$test->addTestCase(new Doctrine_DQL_ParserTestCase());
|
|
|
|
|
|
|
|
$test->addTestCase(new Doctrine_BatchIteratorTestCase());
|
2006-04-14 14:20:19 +04:00
|
|
|
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
|
2006-04-14 00:37:28 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-04-14 14:37:13 +04:00
|
|
|
|
2006-04-14 14:20:19 +04:00
|
|
|
|
2006-04-14 00:37:28 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$test->run(new HtmlReporter());
|
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) {
|
|
|
|
$e = explode(" ",$query);
|
|
|
|
print $query."\n";
|
|
|
|
}
|
|
|
|
?>
|