Commit 30a00c50 authored by doctrine's avatar doctrine

small require_once bug fix

parent 47e1cf51
...@@ -3,7 +3,7 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate { ...@@ -3,7 +3,7 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate {
/** /**
* default DSN * default DSN
*/ */
const DSN = "mysql://zYne:dc34@localhost/test"; const DSN = "mysql://root:dc34@localhost/test";
/** /**
* executed queries * executed queries
*/ */
......
<?php <?php
require_once("Relation.class.php");
/** /**
* Foreign Key * Foreign Key
*/ */
......
...@@ -23,4 +23,3 @@ class Doctrine_IndexGenerator { ...@@ -23,4 +23,3 @@ class Doctrine_IndexGenerator {
} }
} }
?> ?>
<?php <?php
require_once("Relation.class.php");
/** /**
* Local Key * Local Key
*/ */
......
...@@ -97,7 +97,6 @@ class Sensei extends Doctrine_Access { ...@@ -97,7 +97,6 @@ class Sensei extends Doctrine_Access {
if(headers_sent()) if(headers_sent())
throw new Sensei_Exception("Headers already sent. Couldn't initialize session."); throw new Sensei_Exception("Headers already sent. Couldn't initialize session.");
$this->session = Doctrine_Manager::getInstance()->getCurrentSession(); $this->session = Doctrine_Manager::getInstance()->getCurrentSession();
$this->table = $this->session->getTable("Sensei_session"); $this->table = $this->session->getTable("Sensei_session");
$this->init(); $this->init();
...@@ -107,6 +106,7 @@ class Sensei extends Doctrine_Access { ...@@ -107,6 +106,7 @@ class Sensei extends Doctrine_Access {
if( ! isset($_SESSION)) if( ! isset($_SESSION))
session_start(); session_start();
} }
/** /**
* getRecord * getRecord
......
<?php <?php
ob_start(); ob_start();
require_once("ConfigurableTestCase.class.php"); require_once("ConfigurableTestCase.class.php");
require_once("ManagerTestCase.class.php"); require_once("ManagerTestCase.class.php");
require_once("SessionTestCase.class.php"); require_once("SessionTestCase.class.php");
...@@ -18,11 +19,12 @@ require_once("SenseiTestCase.class.php"); ...@@ -18,11 +19,12 @@ require_once("SenseiTestCase.class.php");
require_once("QueryTestCase.class.php"); require_once("QueryTestCase.class.php");
print "<pre>";
error_reporting(E_ALL); error_reporting(E_ALL);
$test = new GroupTest("Doctrine Framework Unit Tests"); $test = new GroupTest("Doctrine Framework Unit Tests");
//$test->addTestCase(new Sensei_UnitTestCase());
$test->addTestCase(new Doctrine_SessionTestCase()); $test->addTestCase(new Doctrine_SessionTestCase());
$test->addTestCase(new Doctrine_TableTestCase()); $test->addTestCase(new Doctrine_TableTestCase());
...@@ -43,13 +45,10 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase()); ...@@ -43,13 +45,10 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase());
$test->addTestCase(new Doctrine_Collection_OffsetTestCase()); $test->addTestCase(new Doctrine_Collection_OffsetTestCase());
$test->addTestCase(new Sensei_UnitTestCase());
$test->addTestCase(new Doctrine_CollectionTestCase()); $test->addTestCase(new Doctrine_CollectionTestCase());
$test->addTestCase(new Doctrine_QueryTestCase()); $test->addTestCase(new Doctrine_QueryTestCase());
//$test->addTestCase(new Doctrine_Cache_FileTestCase()); //$test->addTestCase(new Doctrine_Cache_FileTestCase());
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase()); //$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
...@@ -59,7 +58,7 @@ $test->addTestCase(new Doctrine_QueryTestCase()); ...@@ -59,7 +58,7 @@ $test->addTestCase(new Doctrine_QueryTestCase());
print "<pre>";
$test->run(new HtmlReporter()); $test->run(new HtmlReporter());
$cache = Doctrine_Manager::getInstance()->getCurrentSession()->getCacheHandler(); $cache = Doctrine_Manager::getInstance()->getCurrentSession()->getCacheHandler();
if(isset($cache)) { if(isset($cache)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment