rdbms: Issue a deprecation warning if errors are ignored
[lhc/web/wiklou.git] / tests / phpunit / includes / db / DatabaseTestHelper.php
index 36254f7..e9fc34f 100644 (file)
@@ -53,6 +53,9 @@ class DatabaseTestHelper extends Database {
                $this->errorLogger = function ( Exception $e ) {
                        wfWarn( get_class( $e ) . ": {$e->getMessage()}" );
                };
+               $this->deprecationLogger = function ( $msg ) {
+                       wfWarn( $msg );
+               };
                $this->currentDomain = DatabaseDomain::newUnspecified();
                $this->open( 'localhost', 'testuser', 'password', 'testdb' );
        }