Commit b3c5aeb2 authored by pookey's avatar pookey

issues with case sensitivity

parent 13fd0949
......@@ -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;
......
......@@ -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);
......
......@@ -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);
......
......@@ -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');
......
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