diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-09 22:34:21 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-09 22:34:21 +0200 |
commit | f243ce13b4baf5bf8bebf36586514bb243dfc355 (patch) | |
tree | 6f9b26f7b1c82f50c0c9e4a1d0190b3398948da7 /tests/mocks/database/db | |
parent | c186288755aba46a2b6f0c3f104d9a6ce6b11a7f (diff) |
Cleanup/optimize tests/mocks/
Diffstat (limited to 'tests/mocks/database/db')
-rw-r--r-- | tests/mocks/database/db/driver.php | 7 | ||||
-rw-r--r-- | tests/mocks/database/db/querybuilder.php | 9 |
2 files changed, 6 insertions, 10 deletions
diff --git a/tests/mocks/database/db/driver.php b/tests/mocks/database/db/driver.php index cb1820277..65ac2c4cc 100644 --- a/tests/mocks/database/db/driver.php +++ b/tests/mocks/database/db/driver.php @@ -1,7 +1,7 @@ <?php class Mock_Database_DB_Driver extends CI_DB_driver { - + /** * @var object The actual Driver */ @@ -16,7 +16,10 @@ class Mock_Database_DB_Driver extends CI_DB_driver { */ public function __construct($driver_class, $config = array()) { - if (is_string($driver_class)) $this->ci_db_driver = new $driver_class($config); + if (is_string($driver_class)) + { + $this->ci_db_driver = new $driver_class($config); + } } /** diff --git a/tests/mocks/database/db/querybuilder.php b/tests/mocks/database/db/querybuilder.php index 1b95c92af..3f2252622 100644 --- a/tests/mocks/database/db/querybuilder.php +++ b/tests/mocks/database/db/querybuilder.php @@ -1,10 +1,3 @@ <?php -if ( ! class_exists('CI_DB_query_builder')) -{ - class Mock_Database_DB_QueryBuilder extends CI_DB_active_record {} -} -else -{ - class Mock_Database_DB_QueryBuilder extends CI_DB_query_builder {} -} +class Mock_Database_DB_QueryBuilder extends CI_DB_query_builder {}
\ No newline at end of file |