Revert last commit & just ignore E_DEPRECATED
diff --git a/.travis.yml b/.travis.yml
index c98b45e..4f56044 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,10 +31,6 @@
allow_failures:
- php: 5.2
- php: hhvm
- - php: 5.5
- env: DB=mysql
- - php: 5.6
- env: DB=mysql
exclude:
- php: hhvm
env: DB=pgsql
diff --git a/tests/codeigniter/database/DB_test.php b/tests/codeigniter/database/DB_test.php
index d5a9369..dc4fae9 100644
--- a/tests/codeigniter/database/DB_test.php
+++ b/tests/codeigniter/database/DB_test.php
@@ -26,6 +26,14 @@
{
$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);