Make WordPress Core


Ignore:
Timestamp:
10/21/2017 02:13:37 PM (7 years ago)
Author:
dd32
Message:

Tests: Return an exit code of 1 in the event that the database server for tests is unavailable.
This allows for automated scripts & test suites to handle the failure of the test suite easier.

Props danielbachhuber
Fixes #41916

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/install.php

    r38908 r41966  
    2222
    2323$PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
     24
     25tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter_exit' );
    2426
    2527require_once ABSPATH . '/wp-settings.php';
Note: See TracChangeset for help on using the changeset viewer.