WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (4 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/Zeroise.php

    r25002 r42343  
    66class Tests_Formatting_Zeroise extends WP_UnitTestCase {
    77    function test_pads_with_leading_zeroes() {
    8         $this->assertEquals("00005", zeroise(5, 5));
     8        $this->assertEquals( '00005', zeroise( 5, 5 ) );
    99    }
    1010
    1111    function test_does_nothing_if_input_is_already_longer() {
    12         $this->assertEquals("5000000", zeroise(5000000, 2));
     12        $this->assertEquals( '5000000', zeroise( 5000000, 2 ) );
    1313    }
    1414}
Note: See TracChangeset for help on using the changeset viewer.