WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (17 months 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/comment/walker.php

    r43571 r45607  
    5555
    5656    public function comment( $comment, $args, $depth ) {
    57         if ( 1 == $depth ) {
     57        if ( 1 === $depth ) {
    5858            $this->test_walker->assertTrue( $this->walker->has_children );
    5959            $this->test_walker->assertTrue( $args['has_children'] ); // Back compat
    60         } elseif ( 2 == $depth ) {
     60        } elseif ( 2 === $depth ) {
    6161            $this->test_walker->assertFalse( $this->walker->has_children );
    6262            $this->test_walker->assertFalse( $args['has_children'] ); // Back compat
Note: See TracChangeset for help on using the changeset viewer.