From 54fb6f68f1d793b9582dae455b2022e2ecfd3247 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 19 Feb 2015 15:13:39 +0200 Subject: test_db_failover is failing after 'autoinit' removal ... --- tests/codeigniter/database/DB_test.php | 3 +++ tests/mocks/database/db.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/codeigniter/database/DB_test.php b/tests/codeigniter/database/DB_test.php index d5c0dea08..0c3df3fc4 100644 --- a/tests/codeigniter/database/DB_test.php +++ b/tests/codeigniter/database/DB_test.php @@ -34,6 +34,9 @@ class DB_test extends CI_TestCase { // ------------------------------------------------------------------------ + /** + * @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 5216be2d7..00dd884b0 100644 --- a/tests/mocks/database/db.php +++ b/tests/mocks/database/db.php @@ -133,7 +133,7 @@ class Mock_Database_DB { } catch (Exception $e) { - throw new InvalidArgumentException($e->getMessage()); + throw new RuntimeException($e->getMessage()); } return $db; -- cgit v1.2.3-24-g4f1b