Suppress "Headers already sent" in PHP 7.2 too
[lhc/web/wiklou.git] / tests / phpunit / includes / session / PHPSessionHandlerTest.php
index b001eb9..b191a2f 100644 (file)
@@ -17,7 +17,7 @@ class PHPSessionHandlerTest extends MediaWikiTestCase {
 
                // Ignore "headers already sent" warnings during this test
                set_error_handler( function ( $errno, $errstr ) use ( &$warnings ) {
-                       if ( preg_match( '/headers already sent/', $errstr ) ) {
+                       if ( preg_match( '/[hH]eaders already sent/', $errstr ) ) {
                                return true;
                        }
                        return false;