Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/capabilities.php

    r45507 r45607  
    15471547        // Prevents fatal errors in ::tearDown()'s and other uses of restore_current_blog()
    15481548        $function_stack = wp_debug_backtrace_summary( null, 0, false );
    1549         if ( in_array( 'restore_current_blog', $function_stack ) ) {
     1549        if ( in_array( 'restore_current_blog', $function_stack, true ) ) {
    15501550            return;
    15511551        }
Note: See TracChangeset for help on using the changeset viewer.