'; $test = new GroupTest('Doctrine Framework Unit Tests'); /** $test->addTestCase(new Doctrine_Configurable_TestCase()); $test->addTestCase(new Doctrine_Export_Mysql_TestCase()); $test->addTestCase(new Doctrine_Export_Firebird_TestCase()); $test->addTestCase(new Doctrine_Export_Pgsql_TestCase()); $test->addTestCase(new Doctrine_Export_Oracle_TestCase()); $test->addTestCase(new Doctrine_DataDict_Pgsql_TestCase()); $test->addTestCase(new Doctrine_Transaction_TestCase()); $test->addTestCase(new Doctrine_Transaction_Mysql_TestCase()); $test->addTestCase(new Doctrine_Transaction_Pgsql_TestCase()); $test->addTestCase(new Doctrine_Transaction_Oracle_TestCase()); $test->addTestCase(new Doctrine_Transaction_Firebird_TestCase()); $test->addTestCase(new Doctrine_Transaction_Sqlite_TestCase()); $test->addTestCase(new Doctrine_Transaction_Mssql_TestCase()); */ $test->addTestCase(new Doctrine_Relation_ManyToMany_TestCase()); $test->addTestCase(new Doctrine_UnitOfWork_TestCase()); $test->addTestCase(new Doctrine_ConnectionTestCase()); $test->addTestCase(new Doctrine_Db_TestCase()); $test->addTestCase(new Doctrine_Db_Profiler_TestCase()); $test->addTestCase(new Doctrine_Query_MultiJoin_TestCase()); $test->addTestCase(new Doctrine_Record_TestCase()); $test->addTestCase(new Doctrine_Relation_TestCase()); $test->addTestCase(new Doctrine_Record_State_TestCase()); //$test->addTestCase(new Doctrine_Import_TestCase()); $test->addTestCase(new Doctrine_SchemaTestCase()); $test->addTestCase(new Doctrine_ValidatorTestCase()); $test->addTestCase(new Doctrine_EventListenerTestCase()); $test->addTestCase(new Doctrine_Connection_Transaction_TestCase()); $test->addTestCase(new Doctrine_AccessTestCase()); $test->addTestCase(new Doctrine_TableTestCase()); $test->addTestCase(new Doctrine_ManagerTestCase()); $test->addTestCase(new Doctrine_BatchIteratorTestCase()); //$test->addTestCase(new Doctrine_Collection_Offset_TestCase()); $test->addTestCase(new Doctrine_PessimisticLockingTestCase()); $test->addTestCase(new Doctrine_ViewTestCase()); $test->addTestCase(new Doctrine_CustomPrimaryKeyTestCase()); $test->addTestCase(new Doctrine_Filter_TestCase()); $test->addTestCase(new Doctrine_RawSql_TestCase()); $test->addTestCase(new Doctrine_CollectionTestCase()); $test->addTestCase(new Doctrine_Query_ReferenceModel_TestCase()); $test->addTestCase(new Doctrine_DataDict_Sqlite_TestCase()); $test->addTestCase(new Doctrine_EventListener_Chain_TestCase()); $test->addTestCase(new Doctrine_RelationAccessTestCase()); $test->addTestCase(new Doctrine_CustomResultSetOrderTestCase()); $test->addTestCase(new Doctrine_BooleanTestCase()); //$test->addTestCase(new Doctrine_Record_Filter_TestCase()); $test->addTestCase(new Doctrine_Query_Condition_TestCase()); $test->addTestCase(new Doctrine_Query_ComponentAlias_TestCase()); $test->addTestCase(new Doctrine_Query_Subquery_TestCase()); $test->addTestCase(new Doctrine_EnumTestCase()); $test->addTestCase(new Doctrine_Query_TestCase()); $test->addTestCase(new Doctrine_Query_ShortAliases_TestCase()); $test->addTestCase(new Doctrine_Query_From_TestCase()); $test->addTestCase(new Doctrine_Query_Delete_TestCase()); $test->addTestCase(new Doctrine_Query_Update_TestCase()); $test->addTestCase(new Doctrine_Query_Where_TestCase()); $test->addTestCase(new Doctrine_Query_Limit_TestCase()); $test->addTestCase(new Doctrine_Query_Select_TestCase()); //$test->addTestCase(new Doctrine_Cache_Query_SqliteTestCase()); //$test->addTestCase(new Doctrine_Cache_FileTestCase()); //$test->addTestCase(new Doctrine_Cache_SqliteTestCase()); class MyReporter extends HtmlReporter { public function paintHeader() {} public function paintFooter() { $colour = ($this->getFailCount() + $this->getExceptionCount() > 0 ? "red" : "green"); print "
getCurrentConnection()->getDBH(); $a = $dbh->getQueries(); print "Executed queries: ".count($a)."\n"; foreach($a as $query) { print $query."\n"; } ?>