Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WPBasename.php

    r41029 r42343  
    77
    88    function test_wp_basename_unix() {
    9         $this->assertEquals('file',
    10             wp_basename('/home/test/file'));
     9        $this->assertEquals(
     10            'file',
     11            wp_basename( '/home/test/file' )
     12        );
    1113    }
    1214
    1315    function test_wp_basename_unix_utf8_support() {
    14         $this->assertEquals('žluťoučký kůň.txt',
    15             wp_basename('/test/žluťoučký kůň.txt'));
     16        $this->assertEquals(
     17            'žluťoučký kůň.txt',
     18            wp_basename( '/test/žluťoučký kůň.txt' )
     19        );
    1620    }
    1721
     
    2024     */
    2125    function test_wp_basename_windows() {
    22         $this->assertEquals('file.txt',
    23             wp_basename('C:\Documents and Settings\User\file.txt'));
     26        $this->assertEquals(
     27            'file.txt',
     28            wp_basename( 'C:\Documents and Settings\User\file.txt' )
     29        );
    2430    }
    2531
     
    2834     */
    2935    function test_wp_basename_windows_utf8_support() {
    30         $this->assertEquals('щипцы.txt',
    31             wp_basename('C:\test\щипцы.txt'));
     36        $this->assertEquals(
     37            'щипцы.txt',
     38            wp_basename( 'C:\test\щипцы.txt' )
     39        );
    3240    }
    3341
Note: See TracChangeset for help on using the changeset viewer.