test_db_failover is failing after 'autoinit' removal ...
diff --git a/tests/codeigniter/database/DB_test.php b/tests/codeigniter/database/DB_test.php
index d5c0dea..0c3df3f 100644
--- a/tests/codeigniter/database/DB_test.php
+++ b/tests/codeigniter/database/DB_test.php
@@ -34,6 +34,9 @@
// ------------------------------------------------------------------------
+ /**
+ * @expectedException RuntimeException
+ */
public function test_db_failover()
{
$config = Mock_Database_DB::config(DB_DRIVER);
diff --git a/tests/mocks/database/db.php b/tests/mocks/database/db.php
index 5216be2..00dd884 100644
--- a/tests/mocks/database/db.php
+++ b/tests/mocks/database/db.php
@@ -133,7 +133,7 @@
}
catch (Exception $e)
{
- throw new InvalidArgumentException($e->getMessage());
+ throw new RuntimeException($e->getMessage());
}
return $db;