issues with case sensitivity
This commit is contained in:
parent
13fd0949d7
commit
b3c5aeb225
@ -150,8 +150,8 @@ class Doctrine_DB2 implements Countable, IteratorAggregate, Doctrine_Adapter_Int
|
|||||||
* @return Doctrine_DB
|
* @return Doctrine_DB
|
||||||
*/
|
*/
|
||||||
public function addListener($listener, $name = null) {
|
public function addListener($listener, $name = null) {
|
||||||
if( ! ($this->listener instanceof Doctrine_DB_EventListener_Chain))
|
if( ! ($this->listener instanceof Doctrine_Db_EventListener_Chain))
|
||||||
$this->listener = new Doctrine_DB_EventListener_Chain();
|
$this->listener = new Doctrine_Db_EventListener_Chain();
|
||||||
|
|
||||||
$this->listener->add($listener, $name);
|
$this->listener->add($listener, $name);
|
||||||
|
|
||||||
@ -172,9 +172,9 @@ class Doctrine_DB2 implements Countable, IteratorAggregate, Doctrine_Adapter_Int
|
|||||||
* @return Doctrine_DB
|
* @return Doctrine_DB
|
||||||
*/
|
*/
|
||||||
public function setListener($listener) {
|
public function setListener($listener) {
|
||||||
if( ! ($listener instanceof Doctrine_DB_EventListener_Interface) &&
|
if( ! ($listener instanceof Doctrine_Db_EventListener_Interface) &&
|
||||||
! ($listener instanceof Doctrine_Overloadable))
|
! ($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;
|
$this->listener = $listener;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ class Doctrine_Db_Profiler_TestCase extends Doctrine_UnitTestCase {
|
|||||||
public function testQuery() {
|
public function testQuery() {
|
||||||
$this->dbh = Doctrine_DB2::getConnection('sqlite::memory:');
|
$this->dbh = Doctrine_DB2::getConnection('sqlite::memory:');
|
||||||
|
|
||||||
$this->profiler = new Doctrine_DB_Profiler();
|
$this->profiler = new Doctrine_Db_Profiler();
|
||||||
|
|
||||||
$this->dbh->setListener($this->profiler);
|
$this->dbh->setListener($this->profiler);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ require_once dirname(__FILE__).'/../lib/Doctrine.php';
|
|||||||
|
|
||||||
|
|
||||||
//Doctrine::loadAll();
|
//Doctrine::loadAll();
|
||||||
ini_set('include_path', $_SERVER['DOCUMENT_ROOT']);
|
//ini_set('include_path', $_SERVER['DOCUMENT_ROOT']);
|
||||||
|
|
||||||
function __autoload($class) {
|
function __autoload($class) {
|
||||||
Doctrine::autoload($class);
|
Doctrine::autoload($class);
|
||||||
|
@ -48,7 +48,7 @@ require_once('RelationTestCase.php');
|
|||||||
require_once('RelationManyToManyTestCase.php');
|
require_once('RelationManyToManyTestCase.php');
|
||||||
|
|
||||||
|
|
||||||
require_once('DbTestCase.php');
|
require_once('DBTestCase.php');
|
||||||
require_once('DbProfilerTestCase.php');
|
require_once('DbProfilerTestCase.php');
|
||||||
|
|
||||||
require_once('SchemaTestCase.php');
|
require_once('SchemaTestCase.php');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user