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/http/base.php

    r45035 r45607  
    5555        foreach ( array( 'curl', 'streams', 'fsockopen' ) as $t ) {
    5656            remove_filter( "use_{$t}_transport", '__return_false' ); // Just strip them all
    57             if ( $t != $this->transport ) {
     57            if ( $t !== $this->transport ) {
    5858                add_filter( "use_{$t}_transport", '__return_false' ); // and add it back if need be..
    5959            }
     
    248248        }
    249249
    250         $this->assertTrue( isset( $headers['test1'] ) && 'test' == $headers['test1'] );
     250        $this->assertTrue( isset( $headers['test1'] ) && 'test' === $headers['test1'] );
    251251        $this->assertTrue( isset( $headers['test2'] ) && '0' === $headers['test2'] );
    252252        // cURL/HTTP Extension Note: Will never pass, cURL does not pass headers with an empty value.
Note: See TracChangeset for help on using the changeset viewer.