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/includes/bootstrap.php

    r45588 r45607  
    7777
    7878// Should we run in multisite mode?
    79 $multisite = '1' == getenv( 'WP_MULTISITE' );
     79$multisite = ( '1' === getenv( 'WP_MULTISITE' ) );
    8080$multisite = $multisite || ( defined( 'WP_TESTS_MULTISITE' ) && WP_TESTS_MULTISITE );
    8181$multisite = $multisite || ( defined( 'MULTISITE' ) && MULTISITE );
     
    192192
    193193                    foreach ( $skipped_groups as $group_name => $skipped ) {
    194                         if ( in_array( $group_name, $groups ) ) {
     194                        if ( in_array( $group_name, $groups, true ) ) {
    195195                            $skipped_groups[ $group_name ] = false;
    196196                        }
Note: See TracChangeset for help on using the changeset viewer.