From b3c5aeb22569fd5ed294fed81efc27059ba716b1 Mon Sep 17 00:00:00 2001 From: pookey Date: Sat, 11 Nov 2006 10:54:55 +0000 Subject: [PATCH] issues with case sensitivity --- draft/DB.php | 8 ++++---- tests/DbProfilerTestCase.php | 2 +- tests/UnitTestCase.php | 2 +- tests/run.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/draft/DB.php b/draft/DB.php index d71cd533e..e451aef8a 100644 --- a/draft/DB.php +++ b/draft/DB.php @@ -150,8 +150,8 @@ class Doctrine_DB2 implements Countable, IteratorAggregate, Doctrine_Adapter_Int * @return Doctrine_DB */ public function addListener($listener, $name = null) { - if( ! ($this->listener instanceof Doctrine_DB_EventListener_Chain)) - $this->listener = new Doctrine_DB_EventListener_Chain(); + if( ! ($this->listener instanceof Doctrine_Db_EventListener_Chain)) + $this->listener = new Doctrine_Db_EventListener_Chain(); $this->listener->add($listener, $name); @@ -172,9 +172,9 @@ class Doctrine_DB2 implements Countable, IteratorAggregate, Doctrine_Adapter_Int * @return Doctrine_DB */ public function setListener($listener) { - if( ! ($listener instanceof Doctrine_DB_EventListener_Interface) && + if( ! ($listener instanceof Doctrine_Db_EventListener_Interface) && ! ($listener instanceof Doctrine_Overloadable)) - throw new Doctrine_DB_Exception("Couldn't set eventlistener for database handler. EventListeners should implement either Doctrine_DB_EventListener_Interface or Doctrine_Overloadable"); + throw new Doctrine_Db_Exception("Couldn't set eventlistener for database handler. EventListeners should implement either Doctrine_DB_EventListener_Interface or Doctrine_Overloadable"); $this->listener = $listener; diff --git a/tests/DbProfilerTestCase.php b/tests/DbProfilerTestCase.php index 29cd58357..10f0c0038 100644 --- a/tests/DbProfilerTestCase.php +++ b/tests/DbProfilerTestCase.php @@ -9,7 +9,7 @@ class Doctrine_Db_Profiler_TestCase extends Doctrine_UnitTestCase { public function testQuery() { $this->dbh = Doctrine_DB2::getConnection('sqlite::memory:'); - $this->profiler = new Doctrine_DB_Profiler(); + $this->profiler = new Doctrine_Db_Profiler(); $this->dbh->setListener($this->profiler); diff --git a/tests/UnitTestCase.php b/tests/UnitTestCase.php index 0b81f7428..2aee59097 100644 --- a/tests/UnitTestCase.php +++ b/tests/UnitTestCase.php @@ -7,7 +7,7 @@ require_once dirname(__FILE__).'/../lib/Doctrine.php'; //Doctrine::loadAll(); -ini_set('include_path', $_SERVER['DOCUMENT_ROOT']); +//ini_set('include_path', $_SERVER['DOCUMENT_ROOT']); function __autoload($class) { Doctrine::autoload($class); diff --git a/tests/run.php b/tests/run.php index 963195384..cddc7d3ff 100644 --- a/tests/run.php +++ b/tests/run.php @@ -48,7 +48,7 @@ require_once('RelationTestCase.php'); require_once('RelationManyToManyTestCase.php'); -require_once('DbTestCase.php'); +require_once('DBTestCase.php'); require_once('DbProfilerTestCase.php'); require_once('SchemaTestCase.php');