summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-19 16:22:14 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-19 16:22:14 +0100
commit03bafe99fe982dbff7adc9e7ef04c55ec3a32fcb (patch)
tree293e0e7427c7f0cd9e55210ea97d5c795e60dd10 /tests
parentfaf8fb3f88242a4c2b89d8cf61cb91d1b2b911fe (diff)
Revert last commit & just ignore E_DEPRECATED
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/database/DB_test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/codeigniter/database/DB_test.php b/tests/codeigniter/database/DB_test.php
index d5a9369e6..dc4fae986 100644
--- a/tests/codeigniter/database/DB_test.php
+++ b/tests/codeigniter/database/DB_test.php
@@ -26,6 +26,14 @@ class DB_test extends CI_TestCase {
{
$config = Mock_Database_DB::config(DB_DRIVER);
$connection = new Mock_Database_DB($config);
+
+ // E_DEPRECATED notices thrown by mysql_connect(), mysql_pconnect()
+ // on PHP 5.5+ cause the tests to fail
+ if (DB_DRIVER === 'mysql' && version_compare(PHP_VERSION, '5.5', '>='))
+ {
+ error_reporting(E_ALL & ~E_DEPRECATED);
+ }
+
$db = Mock_Database_DB::DB($connection->set_dsn(DB_DRIVER), TRUE);
$this->assertTrue($db instanceof CI_DB);