WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/28/2019 02:19:46 AM (8 weeks ago)
Author:
SergeyBiryukov
Message:

Date/Time: Correct delta comparison in test_should_return_wp_timestamp().

See #25768.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/date/dateI18n.php

    r45882 r45902  
    116116        $wp_timestamp = $timestamp + $datetime->getOffset();
    117117
    118         $this->assertEquals( $wp_timestamp, date_i18n( 'U' ), 2 );
    119         $this->assertEquals( $timestamp, date_i18n( 'U', false, true ), 2 );
     118        $this->assertEquals( $wp_timestamp, date_i18n( 'U' ), 'The dates should be equal', 2 );
     119        $this->assertEquals( $timestamp, date_i18n( 'U', false, true ), 'The dates should be equal', 2 );
    120120        $this->assertEquals( $wp_timestamp, date_i18n( 'U', $wp_timestamp ) );
    121121    }
Note: See TracChangeset for help on using the changeset viewer.