summaryrefslogtreecommitdiffstats
path: root/tests/mocks/database/drivers/pdo.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-04-26 20:27:02 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-04-26 20:27:02 +0200
commit0713b94f5245c9180b58207b661155f084fb493b (patch)
treee269a5f722e2c129357252ee0e8e649f1588d7e4 /tests/mocks/database/drivers/pdo.php
parent9e2d5d130eff40592b49337a8ba4d8c170934de1 (diff)
parentd115f8327a8f16d957cc4e0876225037bb2f5868 (diff)
Merge pull request #1246 from toopay/db-tests
Improved test coverage for Database.
Diffstat (limited to 'tests/mocks/database/drivers/pdo.php')
-rw-r--r--tests/mocks/database/drivers/pdo.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/mocks/database/drivers/pdo.php b/tests/mocks/database/drivers/pdo.php
new file mode 100644
index 000000000..590e19552
--- /dev/null
+++ b/tests/mocks/database/drivers/pdo.php
@@ -0,0 +1,16 @@
+<?php
+
+class Mock_Database_Drivers_PDO extends Mock_Database_DB_Driver {
+
+ /**
+ * Instantiate the database driver
+ *
+ * @param string DB Driver class name
+ * @param array DB configuration to set
+ * @return void
+ */
+ public function __construct($config = array())
+ {
+ parent::__construct('CI_DB_pdo_driver', $config);
+ }
+} \ No newline at end of file