WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (2 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/file.php

    r45345 r45607  
    209209
    210210        // Check to see if the system parameters prevent signature verifications.
    211         if ( is_wp_error( $verify ) && 'signature_verification_unsupported' == $verify->get_error_code() ) {
     211        if ( is_wp_error( $verify ) && 'signature_verification_unsupported' === $verify->get_error_code() ) {
    212212            $this->markTestSkipped( 'This system does not support Signature Verification.' );
    213213        }
     
    229229        unlink( $file );
    230230
    231         if ( is_wp_error( $verify ) && 'signature_verification_unsupported' == $verify->get_error_code() ) {
     231        if ( is_wp_error( $verify ) && 'signature_verification_unsupported' === $verify->get_error_code() ) {
    232232            $this->markTestSkipped( 'This system does not support Signature Verification.' );
    233233        }
Note: See TracChangeset for help on using the changeset viewer.