1
0
mirror of synced 2025-01-29 19:41:45 +03:00

issues with case sensitivity

This commit is contained in:
pookey 2006-11-11 10:54:55 +00:00
parent 13fd0949d7
commit b3c5aeb225
4 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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');