Make WordPress Core


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

    r43571 r45607  
    24752475
    24762476                foreach ( $found as $f ) {
    2477                         if ( $t1 == $f->term_id ) {
     2477                        if ( $t1 === $f->term_id ) {
    24782478                                $this->assertSame( 3, $f->count );
    2479                         } elseif ( $t2 == $f->term_id ) {
     2479                        } elseif ( $t2 === $f->term_id ) {
    24802480                                $this->assertSame( 2, $f->count );
    24812481                        } else {
     
    25482548
    25492549                foreach ( $found as $f ) {
    2550                         if ( $t1 == $f->term_id ) {
     2550                        if ( $t1 === $f->term_id ) {
    25512551                                $this->assertEquals( 1, $f->count );
    2552                         } elseif ( $t2 == $f->term_id ) {
     2552                        } elseif ( $t2 === $f->term_id ) {
    25532553                                $this->assertEquals( 2, $f->count );
    25542554                        } else {
Note: See TracChangeset for help on using the changeset viewer.