diff --git a/classes/DB.class.php b/classes/DB.class.php index d45ff3e10..ab82c3876 100644 --- a/classes/DB.class.php +++ b/classes/DB.class.php @@ -3,7 +3,7 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate { /** * default DSN */ - const DSN = "mysql://zYne:dc34@localhost/test"; + const DSN = "mysql://root:dc34@localhost/test"; /** * executed queries */ diff --git a/classes/ForeignKey.class.php b/classes/ForeignKey.class.php index 45da235ae..763b411a9 100644 --- a/classes/ForeignKey.class.php +++ b/classes/ForeignKey.class.php @@ -1,4 +1,5 @@ - +?> diff --git a/classes/LocalKey.class.php b/classes/LocalKey.class.php index e9ef704f5..83b735bda 100644 --- a/classes/LocalKey.class.php +++ b/classes/LocalKey.class.php @@ -1,4 +1,5 @@ session = Doctrine_Manager::getInstance()->getCurrentSession(); $this->table = $this->session->getTable("Sensei_session"); $this->init(); @@ -107,6 +106,7 @@ class Sensei extends Doctrine_Access { if( ! isset($_SESSION)) session_start(); + } /** * getRecord diff --git a/tests/run.php b/tests/run.php index 388a71cb1..b4f6e8b6c 100644 --- a/tests/run.php +++ b/tests/run.php @@ -1,5 +1,6 @@ "; error_reporting(E_ALL); $test = new GroupTest("Doctrine Framework Unit Tests"); +//$test->addTestCase(new Sensei_UnitTestCase()); + $test->addTestCase(new Doctrine_SessionTestCase()); $test->addTestCase(new Doctrine_TableTestCase()); @@ -43,13 +45,10 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase()); $test->addTestCase(new Doctrine_Collection_OffsetTestCase()); -$test->addTestCase(new Sensei_UnitTestCase()); - $test->addTestCase(new Doctrine_CollectionTestCase()); $test->addTestCase(new Doctrine_QueryTestCase()); - //$test->addTestCase(new Doctrine_Cache_FileTestCase()); //$test->addTestCase(new Doctrine_Cache_SqliteTestCase()); @@ -59,7 +58,7 @@ $test->addTestCase(new Doctrine_QueryTestCase()); - +print "
"; $test->run(new HtmlReporter()); $cache = Doctrine_Manager::getInstance()->getCurrentSession()->getCacheHandler(); if(isset($cache)) {