From d01128614f077c6ab8a732db42f3af90640fc1cc Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 29 Sep 2009 13:30:24 -0400 Subject: [PATCH] We never want to autoload the CacheMock class --- framework/Db/test/Horde/Db/Adapter/MysqliSuite.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php index 266b1e274..282ab7bb5 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php @@ -59,7 +59,7 @@ class Horde_Db_Adapter_MysqliSuite extends PHPUnit_Framework_TestSuite public function getConnection() { - if (!class_exists('CacheMock')) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); + if (!class_exists('CacheMock', false)) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); $cache = new CacheMock; $config = array( diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php index 2c4a44329..c260e9111 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php @@ -59,7 +59,7 @@ class Horde_Db_Adapter_Pdo_MysqlSuite extends PHPUnit_Framework_TestSuite public function getConnection() { - if (!class_exists('CacheMock')) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); + if (!class_exists('CacheMock', false)) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); $cache = new CacheMock; $config = array( diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php index 002c8ec00..7bd99977b 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php @@ -59,7 +59,7 @@ class Horde_Db_Adapter_Pdo_PgsqlSuite extends PHPUnit_Framework_TestSuite public function getConnection() { - if (!class_exists('CacheMock')) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); + if (!class_exists('CacheMock', false)) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); $cache = new CacheMock; $config = array( diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php index 631ffb3f8..9df782cb2 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php @@ -59,7 +59,7 @@ class Horde_Db_Adapter_Pdo_SqliteSuite extends PHPUnit_Framework_TestSuite public function getConnection() { - if (!class_exists('CacheMock')) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); + if (!class_exists('CacheMock', false)) eval('class CacheMock { function get($key) { return $this->$key; } function set($key, $val) { $this->$key = $val; } } ?>'); $cache = new CacheMock; $conn = Horde_Db_Adapter::factory(array( -- 2.11.0