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/driver.php | |
parent | c186288755aba46a2b6f0c3f104d9a6ce6b11a7f (diff) |
Cleanup/optimize tests/mocks/
Diffstat (limited to 'tests/mocks/database/db/driver.php')
-rw-r--r-- | tests/mocks/database/db/driver.php | 7 |
1 files changed, 5 insertions, 2 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); + } } /** |