Make WordPress Core


Ignore:
Timestamp:
09/28/2017 10:55:54 PM (7 years ago)
Author:
johnbillion
Message:

Build/Test tools: Update some test cases in anticipation of code formatting corrections.

These two tests assume a certain level of indentation in code which does not conform to core's coding
standards and will hopefully be corrected at some point in #41057.

See #41057

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable.php

    r36311 r41635  
    103103
    104104        foreach ( $test_files as $file ) {
    105             preg_match_all( '#^function (\w+)#m', file_get_contents( ABSPATH . '/' . $file ), $functions );
     105            preg_match_all( '#^\t?function (\w+)#m', file_get_contents( ABSPATH . '/' . $file ), $functions );
    106106
    107107            foreach ( $functions[1] as $function ) {
Note: See TracChangeset for help on using the changeset viewer.